I have a large data set and I cannot manually assign variable types to each column. How do I get thousands of variables into R NOT as factors?
Maybe a loop with logic and error handling once the data is in to convert them into the correct data types?
使用fread
包:
data <- fread('example.csv', stringsAsFactors = FALSE)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.