SyntaxFix
Write A Post
Hire A Developer
Questions
You can use which.
which
x<-c(1:5) x #[1] 1 2 3 4 5 x<-x[-which(x==4)] x #[1] 1 2 3 5