powered by
Take the first n elements out from a list or vector.
n
list.take(.data, n, force = FALSE)
list or vector
list
vector
integer. The number of elements to take
integer
TRUE to disable the length check
TRUE
list.takeWhile, list.skip, list.skipWhile
list.takeWhile
list.skip
list.skipWhile
# NOT RUN { x <- list(a=1,b=2,c=3) list.take(x,1) list.take(x,10) # }
Run the code above in your browser using DataLab