ds_tailobs: Tail Observations

Description Usage Arguments Details Value Deprecated function See Also Examples

View source: R/ds-describe.R

Description

Returns the n highest/lowest observations from a numeric vector.

Usage

1
ds_tailobs(data, n, type = c("low", "high"))

Arguments

data

a numeric vector

n

number of observations to be returned

type

if low, the n lowest observations are returned, else the highest n obervations are returned

Details

Any NA values are stripped from data before computation takes place.

Value

n highest/lowest observations from data

Deprecated function

tailobs() has been deprecated. Instead use ds_tailobs().

See Also

top_n

Examples

1
2
ds_tailobs(mtcarz$mpg, 5)
ds_tailobs(mtcarz$mpg, 5, type = "high")

rsquaredacademy/descriptr documentation built on Oct. 7, 2018, 1:02 p.m.