n_percent: n_percent

Description Usage Arguments Value

Description

Returns the number than meet a condition, and the percentage in brackets

Usage

1
n_percent(logical, round = 2, na.rm = F, pattern = "{n} ({p}%)")

Arguments

logical

a logical vector to count

round

scalar, the number of digits

na.rm

bool, whether to remove NAs

pattern

a character string using glue syntax. Variable names are 'n' and 'p'.

Value

a character


JConigrave/papertools documentation built on Dec. 6, 2019, 8:51 a.m.