[R] looking for a string

[Ricardo Rodriguez] Your XEN ICT Team webmaster at xen.net
Wed Apr 16 14:45:56 CEST 2008


Mark Leeds wrote:
> Hi Ricardo: I'm glad it helped but check 
>
> regexpr("Jalapa", as.character( unidad ) ) != -1
>
> because I think it should be
>
> regexpr("Jalapa", as.character( DF$unidad ) ) != -1
>
> if unidad is a column of DF.

Checked! attach(DF) did the trick! :-)

Greetings,

Ricardo

-- 
Ricardo Rodríguez
Your XEN ICT Team



More information about the R-help mailing list