[R] Subtracting test string from vectors

Cren oscar.soppelsa at bancaakros.it
Fri Jun 1 11:48:07 CEST 2012


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-tp4632049.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list