This tutorial explains how to read large CSV files with R. I have tested this code upto 6 GB File.
Method I : Using data.table library
Method II : Using bigmemory library
library(data.table)
yyy = fread("C:\\Users\\Deepanshu\\Documents\\Testing.csv", header = TRUE)
Method II : Using bigmemory library
library(bigmemory)
y <- read.big.matrix("C:\\Users\\Deepanshu\\Documents\\Testing.csv", type = "integer", header=TRUE)
dim(y)
#coerce a big.matrix to a matrix
yy= as.matrix(y)
Nice, very useful
ReplyDeleteneat
ReplyDeleteIt's actually incredibly simple. All you need to do is go to the start menu and choose run. Then type "cmd" into the dialogue box and hit enter. excel reporting dashboard
ReplyDeleteFine, I want algorithm step for k nearest neighbor
ReplyDelete