简体   繁体   中英

How to import CSV into R not as Factors

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM