ntop: Select top n elements

View source: R/ntop.R

ntopR Documentation

Select top n elements

Description

ntop() returns the top 'n' elements of a vector or per vector in a list.

Usage

ntop(x, n, remove.lower = FALSE)

Arguments

x

A vector or list.

n

Number of elements to return.

remove.lower

Remove vectors that have fewer than 'n' elements. Default: FALSE

Value

A vector or list of the same type as 'x', with a maximum of 'n' elements per vector.


jlaffy/scalop documentation built on March 24, 2024, 9 a.m.