Hello,
?setdiff
setdiff(one, two)
Hope this helps,
Rui Barradas
Cren wrote>
> Hi all,
>
> let I have two text string:
>
> *one <-
c("ciao","zio","caio","bello")
> two <- c("caio","zio")*
>
> I would like to obtain a new text string which is* one - two* like this
> one:
>
> [1] "ciao" "bello"
>
> because "caio" and "zio" elements have been subtracted
from *one*.
>
> What's the most efficient way to obtain this?
>
> Thank you,
>
--
View this message in context:
http://r.789695.n4.nabble.com/Subtracting-test-string-from-vectors-tp4632049p4632051.html
Sent from the R help mailing list archive at Nabble.com.