Cut or slice a list data type from start index to end index

cut(lst, start = NULL, end = NULL)

Arguments

lst

the list from which the elements are returned

start

the start index (default: 1st index)

end

the end index (default: length of list)

Value

all elements within the specified range

Details

Retrieve elements from start index to end index. If start is not supplied, it will be assumed to be the 1st index. If end is not supplied then, all elements up to the end will be returned.

Author

Jay Morgan

Examples