| ds_tailobs {descriptr} | R Documentation |
Returns the n highest/lowest observations from a numeric vector.
ds_tailobs(data, n, type = c("low", "high"))
data |
a numeric vector |
n |
number of observations to be returned |
type |
if |
Any NA values are stripped from data before computation
takes place.
n highest/lowest observations from data
ds_tailobs(mtcarz$mpg, 5) ds_tailobs(mtcarz$mpg, 5, type = "high")