search for: df_i

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

Did you mean: d_i
2010 Jan 10
2
data frame names in sequence
...ve been stuck with this problem for a whole afternoon. It's silly but totally pissed me off. I have a set of data frames with names in a sequence: df_1, df_2, df_3, ..., df_20. Now I want to access each data frame (read or write) in a for loop, in a way something like this: for (i in 1:20) { df_i <- ###### length(which(df_i[,7]==1)) ###### } I tried paste or cat ("df_", i, sep=""). But neither way works. Your help is highly appreciated!! Thanks in advance! -- View this message in context: http://n4.nabble.com/data-frame-names-in-sequence-tp1010518p1010518.html S...