Extract every nth element of a vector

a <- 1:120
b <- a[seq(1, length(a), 6)]

Leave a Comment