np: Calculate counts and percentages

Description Usage Arguments

View source: R/np.R

Description

Wraps dplyr::count() to calculate counts and group percentages for a given combination of variables.

Usage

1
np(df, x, ...)

Arguments

df

a data frame

x

a variable whose levels are counted

...

additional variables to count by, defining also the grouping that is used to calculate percentages


fbc-studies/fbcutils documentation built on May 7, 2019, 7:41 a.m.