Top R&B artists
top_n: Select top (or bottom) n rows (by value)In dplyr: A Grammar of Data ManipulationDescription Usage Arguments Examples Show View source: R/top-n.R Descriptiontop_n() was superseded because the name was fundamentally confusing as it returned what you might reasonably consider to be the bottom rows. Additionally, the wt variable had a confusing name, and strange default (the last column in the data frame). Unfortunately we could not see an easy way to fix the existing top_n() function without breaking existing code, so we created a new alternative. Usage
Arguments
Examples
Example outputAttaching package: dplyr The following objects are masked from package:stats: filter, lag The following objects are masked from package:base: intersect, setdiff, setequal, union Selecting by x x 1 6 2 10 Selecting by x x 1 1 2 1 3 1 x 1 10 2 6 x 1 1 2 1 3 1 Selecting by x x 1 6 2 4 3 10 x 1 10 2 6 3 4 dplyr documentation built on Feb. 8, 2022, 5:15 p.m. Related to top_n in dplyr...
dplyr index Package overview README.md Column-wise operations dplyr <-> base R dplyr compatibility Grouped data Introduction to dplyr Programming with dplyr Row-wise operations Two-table verbs Window functions |