Displaying 1 result from an estimated 1 matches for "splitlargecsvtomany".
2012 Jul 24
4
ERROR : cannot allocate vector of size (in MB & GB)
...groups,
getting an error like this
" Error: cannot allocate vector of size 82.4 Mb "
My requirement is, spilt data from Huge-size-file(.csv) to no. of small csv
files.
Here i will give no of lines to be 'split by' as input.
Below i give my code
-------------------------------
SplitLargeCSVToMany <- function(DataMatrix,Destination,NoOfLineToGroup)
{
test <- data.frame(read.csv(DataMatrix))
# create groups No.of rows
group <- rep(1:NROW(test), each=NoOfLineToGroup)
new.test <- cbind(test, group=group)
new.test2 <- new.test
new.test2[,ncol(new.test2)]...