View source: R/03-df_detail_groupLevel.R
df_groupBy_topN | R Documentation |
获取数据框每个分组前N个数据
df_groupBy_topN(
data = iris,
gp_fieldName = c("Species", "Petal.Width"),
order_fieldName = "Sepal.Width",
N = 3
)
data |
数据框 |
gp_fieldName |
分组字段,支持组合 |
order_fieldName |
排序字段 |
N |
前N个数据 |
返回数据框
df_groupBy_topN();
df_groupBy_topN(data = iris,gp_fieldName = 'Species',order_fieldName = 'Sepal.Width',N = 2
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.