ep="")
write.csv(newdf,filename)
}
--- On Tue, 3/6/08, joshgage <[EMAIL PROTECTED]> wrote:
> From: joshgage <[EMAIL PROTECTED]>
> Subject: [R] Partitioning a large data frame and writing output CSVs
> To: r-help@r-project.org
> Received: Tuesday, 3 June, 2008, 10:58
This might give you a hint of how to do it. BTW, were the dimensions
563436x4?
test <- matrix(runif(100*4),ncol=4)
# create groups of 10 rows
group <- rep(1:10, each=10)
new.test <- cbind(test, group=group)
# now get indices to write out
indices <- split(seq(nrow(test)), new.test[, 'group'])
# no
Hello,
I have a large dataset [536436,4]
I'd like to partition the dataset into 999 groups of 564 rows and output
each group as a CSV files... Obviously I could do this longhand but I know
it is somehow possible to write a loop to do the same thing...
I'd like to group such that the first grou
3 matches
Mail list logo