Displaying 1 result from an estimated 1 matches for "data_frame_name".
2009 Oct 08
2
how do I name data frames and files according to the index of a for loop?
...h other languages.
I am writing a program that performs a certain set of calculations on
each row of a list of data, and here's what I have so far:
for (i in 1:2858) {
Calc_1 <- some_stuff
Calc_2 <- some_more_stuff
Calc_3 <- some_other_stuff
Data_frame_name <- data.frame(Calc_1, Calc_2, Calc_3)
write.table(Data_frame_name,file="~/file/goes/here.csv", append
= FALSE, sep = "\t",row.names = FALSE, col.names = c("Calc_1", "Calc_2",
"Calc_3"),qmethod = "double")
}
The namin...