Question: Subsetting in R based on row name?
4.9 years ago by
hakimelakhrass • 80
hakimelakhrass • 80 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 •