[R] looking for a string

From: [Ricardo Rodriguez] Your XEN ICT Team <webmaster_at_xen.net>
Date: Tue, 15 Apr 2008 02:10:29 +0200

Hi all,

I have not been able to find an answer to what is a simple question:

conaguaMexicoSub <- subset(conagua, unidad == "Jalapa", select = c(equipo,X101:X309))

This subset gives me all the rows from conagua where unidad is Jalapa. But, please, how do I get all the rows where unidad contents Jalapa?

I've been looking at regex, but I didn't find how pass one to unidad ==.


Ricardo Rodríguez
Your XEN ICT Team

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 15 Apr 2008 - 00:15:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Apr 2008 - 00:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive