Question: Subsetting in R based on row name?
3.5 years ago by
hakimelakhrass • 70
hakimelakhrass • 70 wrote:
So I am trying to take a subset of my data based on row names. When I used one row name it works no problem. When I use a list I get an error.
x <- subset(dataset, rownames(dataset) == names) Warning message: In rownames(dataset) == names : longer object length is not a multiple of shorter object length
ADD COMMENT • link •