Re: [R] data frame names in sequence. please help!!!

2010-01-10 Thread Zoho
Thank you all. The 'list' works well, except makes a really big 'list', since my data is 'huge'. But solves the problem anyway. Appreciate a lot! Barry Rowlingson wrote: > > On Sun, Jan 10, 2010 at 7:16 AM, Berend Hasselman wrote: >> >> >> >> Zoho wrote: >>> >>> I've been stuck with this prob

Re: [R] data frame names in sequence

2010-01-10 Thread jim holtman
?get for (i in 1:20) { df_i <- get(paste('df_', i, sep='')) length(which(df_i[,7]==1)) ## } On Sat, Jan 9, 2010 at 7:57 PM, Zoho wrote: > > I'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 > sequ

Re: [R] data frame names in sequence. please help!!!

2010-01-10 Thread Barry Rowlingson
On Sun, Jan 10, 2010 at 7:16 AM, Berend Hasselman wrote: > > > > Zoho wrote: >> >> I'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

[R] data frame names in sequence

2010-01-10 Thread Zoho
I'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) {

Re: [R] data frame names in sequence. please help!!!

2010-01-09 Thread Berend Hasselman
Zoho wrote: > > I'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 th