简体   繁体   中英

How to load a big csv using ff package?

I'm new at R. I have a big csv around 2.5 gb with 3 columns and 40 million rows. The datatypes of the column are interger, datetime and char. How to load this csv using ff package?

Well it will give you some idea and use existing links Save and load your bigData , load big csv file

all <- read.csv("file.csv")
    library("ff")
    help(read.table.ffdf)
    x<- read.csv.ffdf(file="file.csv", header=TRUE, VERBOSE=TRUE, first.rows=10000, next.rows=50000, colClasses=NA)
    save.ffdf(ffdfname, dir=”/PATH/TO/STORE/FF/FILES”)
    load.ffdf(dir=”/PATH/TO/STORE/FF/FILES”)

hope it will help you.

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