[R] Remove several numbers from a sequence

penguins catrsw at bas.ac.uk
Fri Aug 17 18:18:31 CEST 2012


Can anyone tell me how to remove several numbers for a sequence. For example:

xx<- c(1,5,7,10)
yy<-seq(1,10,1)

how do I get take xx away from yy to get the new sequence 

2,3,4,6,8,9

Many thanks in advance



--
View this message in context: http://r.789695.n4.nabble.com/Remove-several-numbers-from-a-sequence-tp4640630.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list