nth: Return the nth item from a vector

Description Usage Arguments Value See Also Examples

Description

Return the nth item from a vector

Usage

1
nth(x, n, default = NA)

Arguments

x

Vector

n

The n in nth

default

Value to pad missing data with

Value

nth item from vector

See Also

Other utility functions: between, cumall, cumany, cummean, distribute, first, lag, last, lead, n_distinct, n_groups, n

Examples

1
2
nth (1:10, 5)
nth (1:10, 11, default=123)

jeblundell/multiplyr documentation built on May 19, 2019, 12:39 a.m.