Last chance! 50% off unlimited learning
Sale ends in
Take the first n
elements out from a list or
vector.
list.take(.data, n, force = FALSE)
list
or vector
integer
. The number of elements to take
TRUE
to disable the length check
# 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