top_n_nested: Select top n rows by certain value

View source: R/topN.R

top_n_nestedR Documentation

Select top n rows by certain value

Description

Select top n rows in each group, ordered by wt within a nested dataframe

Usage

top_n_nested(df, n = 2, wt)

Arguments

df

A nested dataframe

n

Number of rows to return

wt

The variable to use for ordering


spatialnetworkslab/homelocator documentation built on May 7, 2023, 8:18 p.m.