Take the 2-minute tour ×

I want to pick elements from a vector and exclude 3 values by what position they got.

I know about the x[-n] function to exclude a single value but I don´t know how to exclude more than one.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You could use the c function to combine the values into a vector:

a <- 1:10
[1]  4  5  6  7  8  9 10
share|improve this answer
Thank you so much! –  Per Månsson Feb 8 '13 at 15:41
add comment

Your Answer


