Re: [R] Variables from a Dataframe

2011-12-12 Thread William Dunlap
December 12, 2011 11:50 AM > To: Jose Bustos Melo > Cc: r-help@r-project.org > Subject: Re: [R] Variables from a Dataframe > > Without a reproducible example it's impossible to say for certain, > but I'd try > cbind.data.frame() instead of cbind(). > > You need t

Re: [R] Variables from a Dataframe

2011-12-12 Thread Sarah Goslee
12 de diciembre de 2011 16:50 > Asunto: Re: [R] Variables from a Dataframe > > Without a reproducible example it's impossible to say for certain, > but I'd try > cbind.data.frame() instead of cbind(). > > You need to have a data frame, not a matrix, for the result. >

Re: [R] Variables from a Dataframe

2011-12-12 Thread Paul Menzel
Dear Jose, Am Montag, den 12.12.2011, 19:44 + schrieb Jose Bustos Melo: > Hello everyone, > > I want make a variable selection from a dataframe, but when I build this new > object (using cbind) the new table (which is a matrix) I lost all the > original factor names in the variables. I get

Re: [R] Variables from a Dataframe

2011-12-12 Thread Sarah Goslee
Without a reproducible example it's impossible to say for certain, but I'd try cbind.data.frame() instead of cbind(). You need to have a data frame, not a matrix, for the result. Sarah On Mon, Dec 12, 2011 at 2:44 PM, Jose Bustos Melo wrote: > Hello everyone, > > I want make a variable selectio

[R] Variables from a Dataframe

2011-12-12 Thread Jose Bustos Melo
Hello everyone, I want make a variable selection  from a dataframe, but when I build this new object (using cbind) the new table (which is a matrix) I lost all the original factor names in the variables. I get 1,2,3 Someone would be so kind and tell me if there's is a ny way to get variable