I can select the largest k results of a table in R. For example, if k equals 5, I get the following result:
library(dplyr)
library(ggplot2)
top_n(mpg, 5, wt=displ)
# A tibble: 5 × 11
manufacturer model displ year cyl tr...
asked on
08.12.2016 / 22:23