Hi, How to refer to rows using a vector of row names ? Thanks Stanley [[alternative HTML version deleted]]
Petr PIKAL
2008-Apr-11 10:53 UTC
[R] Odp: How to refer to rows using a vector of row names ?
Hi r-help-bounces at r-project.org napsal dne 11.04.2008 12:46:11:> Hi, > > How to refer to rows using a vector of row names ?Not sure what you mean but rownames(data.frame) %in% vector of row names shall give you numbers of rows, which you can use for subsetting Regards Petr> > Thanks > Stanley > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.