[R] Merging and subsetting with row names XXXX

2012-01-04 Thread Dan Abner
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,

Re: [R] Merging and subsetting with row names XXXX

2012-01-04 Thread Petr PIKAL
Hi As you did not provide any data you probably can not get canned solution 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: