Learn R Programming

rlist (version 0.4.6.1)

list.skip: Skip a number of elements

Description

Skip the first n elements of a list or vector and return the remaining elements if any.

Usage

list.skip(.data, n)

Arguments

.data

A list or vector

n

integer. The number of elements to skip

See Also

list.skipWhile, list.take, list.takeWhile

Examples

Run this code
# NOT RUN {
x <- list(a=1,b=2,c=3)
list.skip(x, 1)
list.skip(x, 2)
# }

Run the code above in your browser using DataLab