Re: [R] looking for a string

From: [Ricardo Rodriguez] Your XEN ICT Team <>
Date: Tue, 15 Apr 2008 02:43:23 +0200

Thanks! Here what I get:

Henrique Dallazuanna wrote:
> Try something like this:
> x[grep("Jalapa", x$unidad),, drop = F]
 > conaguaMexicoSub <- subset(conagua, unidad == x[grep("Jalapa", x$unidad),, drop = F], select = c(equipo,X101:X309))

Error en x$unidad : $ operator is invalid for atomic vectors

Please, is the expression you proposed to pass directly to unidad == ?

I am afraid that I didn't expect that it will be so hard to find an alternative to DOS wildcards!

Thanks for your help,


Ricardo Rodríguez
Your XEN ICT Team

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 15 Apr 2008 - 04:44:43 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 Tue 15 Apr 2008 - 09:30:30 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive