search for: a_var_df

Displaying 1 result from an estimated 1 matches for "a_var_df".

2010 Jul 07
1
problems with write.table, involving loops & paste statement
...code below ensures that the data is written into all 20 folders, but only the last iteration of the loop (last 3573 columns) is being written into ALL of the folders (A_1 to A_20) rather than the sequential order that I would like. How can I fix this? Thank you! ************************* Code: A_var_df <- data.frame(index=1:length(seq(1.0, -0.9, by= -0.1)), from=seq(1.0, -0.9, by= -0.1), to=seq(0.9, -1.0, by= -0.1)) for(i in 1:length(A_var_df[,1])) { library(plyr) max.col <- ncol(Dchr1) l_ply(seq(1, max.col, by=3573), function(k) write.table(as.data.frame(Dchr1[,k:min(k+3572, max.col)]), p...