Entering edit mode
8.6 years ago
hakimelakhrass
▴
80
Hello,
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
Thanks.