[R] looking for a string

[Ricardo Rodriguez] Your XEN ICT Team webmaster at xen.net
Tue Apr 15 02:10:29 CEST 2008


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 ==.

Thanks!

-- 
Ricardo Rodríguez
Your XEN ICT Team



More information about the R-help mailing list