Displaying 1 result from an estimated 1 matches for "myleft".
Did you mean:
yleft
2012 Jan 04
1
Merging and subsetting with row names XXXX
Hello everyone,
I have two questions:
1)
I want to create a subset of a data frame column-wise and simultaneously
extract the row names into a "proper" variable. I tried this, but received
an error:
> myleft<-mydata[c(id=row.names(mydata),"workshop","gender","q1","q2")]
Error in `[.data.frame`(mydata, c(id = row.names(mydata), "workshop", :
undefined columns selected
Is the following the best way to go about this:
>
myleft<-data.frame(id=ro...