Here is an example of a DF:
v1<-c(1,1,1,1,2,2,2,2,3,3,3,3)
v2<-c(234,457,234,675,235,205,347,578,695,783,200,697)
v3<-c(528,659,102,236,358,562,987,102,235,474,888,362)
df<- data.frame(v1,v2,v3)
For this example my intention is to remove the row with the v1=1, v2=457 and v3=659.
I'm trying different ways (subset or even []), for example:
subset(df,df$v1!=1 & df$v2!=457 & df$v3!=659)
df[df$v1!=1 & df$v2!=457 & df$v3!=659,]
However in both cases all rows with v1=1 are removed. How should I write this in order that just the row with v1=1, v2=457 and v3=659 is removed?
So the final DF should be like this:
v1<-c(1,1,1,2,2,2,2,3,3,3,3)
v2<-c(234,234,675,235,205,347,578,695,783,200,697)
v3<-c(528,102,236,358,562,987,102,235,474,888,362)
df<- data.frame(v1,v2,v3)