Filter any context with less instances than a threshold value

filter_counts(df, context, thresh = 1)

Arguments

df

Dataframe with column names defining context.

context

Character. columns defining context within which to count instances.

thresh

Numeric. Threshold (inclusive of thresh) below which to filter.

Value

Filtered dataframe with same names as df