Computes the number and percentage of cases that fulfil a certain filter condition

get_n_perc_filter(data, filter, invert = FALSE)

Arguments

data

tbl. A data frame to be filtered

filter

character. Filter condition(s)

invert

logical. Should the the filter condition(s) be inverted, Default: FALSE

Value

numeric vector c(number, percent). The number and percentage of cases fulfilling the filter condition(s)