Hello,
it is not clear to me, how to search if in a string there is a "." (full
stop).
Using:
grepl(".",string)
doesn't work because the full stop it is a metacharacter (it gives "TRUE"
also if no full stop is in the character). I tried also to insert \. but it
does not work.
> grepl("\.",string
Thanks so much for your help, now I could solve the problem (using [.])!
2013/5/13 arun
> You may also try:
> grepl("[.]",c("ad.1","ads","ad.2"))
> #[1] TRUE FALSE TRUE
> A.K.
>
>
>
> - Original Message -
> From: Fra
2 matches
Mail list logo