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
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,
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,
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
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
5 matches
Mail list logo