getslot: Get a slot of a vector

Description Usage Arguments Value Examples

View source: R/rundown.R

Description

Returns the element denoted by slot from object x

Usage

1

Arguments

x

Vector/list

slot

numeric slot to grab

Value

One element of vector/list

Examples

1
2
3
4
5
## Not run: 
l = list(1:5, 1:10, 1:6, rep("hey", 10))
sapply(l, getslot, 5)

## End(Not run)

muschellij2/clusterRundown documentation built on March 24, 2021, 9 p.m.