[R] Matching a character in a string

GlenB glnbrntt at gmail.com
Tue Jan 26 01:54:59 CET 2010


The output from strsplit("hello","") is not suitable as input for the second
argument for charmatch.

compare with:

 charmatch("o",strsplit("hello","")[[1]])

-- 
View this message in context: http://n4.nabble.com/Matching-a-character-in-a-string-tp1289795p1289976.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list