Re: [R] changing one character in the name of dataframes repeatedly

2011-03-16 Thread Laszlo
Hello Ivan, Thank you very much for your comments, they were really useful and I’ll try to memorize and use them in the future. Getting back to my problem… well, I try to put it in a different way because I’m afraid this is gonna be a little bit more difficult than I thought. So, here is my refr

Re: [R] changing one character in the name of dataframes repeatedly

2011-03-11 Thread Ivan Calandra
Hi, I think, what you want is assign(). for (i in 1:6) assign(paste("df", i, sep="."), split(df,df$a)[[i]]) But using lists is usually a better solution since you can work with them using functions such as lapply(). First, you don't need cbind() to create your data.frame: df2 <- data.frame(a,

Re: [R] changing one character in the name of dataframes repeatedly

2011-03-11 Thread David Winsemius
On Mar 11, 2011, at 10:49 AM, Bodnar Laszlo EB_HU wrote: Dear R-community, I'd like to ask you a question concerning R again. I try to keep this simple because I am not willing to confuse you at all. I have a little data frame which I have created the following way: a <-c(1,1,1,1,1,2,2,2,

[R] changing one character in the name of dataframes repeatedly

2011-03-11 Thread Bodnar Laszlo EB_HU
Dear R-community, I'd like to ask you a question concerning R again. I try to keep this simple because I am not willing to confuse you at all. I have a little data frame which I have created the following way: a <-c(1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6) b <-c(1,2,3,4,5,6

[R] changing one character in the name of dataframes repeatedly

2011-03-11 Thread Bodnar Laszlo EB_HU
Dear R-community, I'd like to ask you a question concerning R again. I try to keep this simple because I am not willing to confuse you at all. I have a little data frame which I have created the following way: a <-c(1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6) b <-c(1,2,3,4,5,6