Displaying 1 result from an estimated 1 matches for "09g001_72975_7575_25_4025".
Did you mean:
09g001_72975_7575_25_4025_1
2012 May 16
0
Problem to resolve a step for reading a large TXT and, split in several file
...irst time I am trying to resolve this problem. I have a TXT file
> with 1408452 rows. I wish to split file-by-file where each file has
> 1,000,000 rows with the following procedure:
>
> # split in two file one with 1,000,000 of rows and one with 408,452 of rows
>
> file<- "09G001_72975_7575_25_4025.txt"
> fileNames<- strsplit(as.character(file), ".", fixed = TRUE)
> fileNames.temp.1<- unique(as.vector(do.call("rbind", fileNames)[, 1]))
>
> con<- file(file, open = "r")
> # n is the number of row
> n<- 1000000
> i<- 0
> w...