I have a group of values called "estados" (the States from USA), and I'm creating a selection of them which I'll call "pena_si" (each number is a State)
pena_si<-estados[c(10,14,11,27,41,36,16,42,51,34,45,28,17,25,18,46,29,43,3,37,4,44,19,26,2,48,31,9,5)]
So, now I'd like to create a selection of the values that aren't in "pena_si" but nothing I try works, so I'd like to know how would you do it. I've tried things like:
estados[estados!==pena_si]
But, as I said, it doesn't work.