Hi Jessica, try this: Q[k:c(k+3)] -- View this message in context: http://r.789695.n4.nabble.com/select-element-from-vector-tp3323725p3324286.html Sent from the R help mailing list archive at Nabble.com.