get_unique_values_and_counts: Find unique values and the counts of those variables for a...

Description Usage Arguments Value

View source: R/get_unique_values_and_counts.R

Description

Find unique values and the counts of those variables for a set of variables in a data.frame. Useful in PMI analysis and for exploring document metadata.

Usage

1
get_unique_values_and_counts(metadata, variable_names = NA, threshold = 0)

Arguments

metadata

A data.frame containing document covariates.

variable_names

A string or vector of strings givign the column names of covariates we would like to get unique values for.

threshold

Defaults to 0, the number of times a unique value of a variable must appear in order to be included in the returned list object. Allows the user to ignore very infrequent values.

Value

A list of vectors of unique variable values that occur more than "threshold" times.


matthewjdenny/SpeedReader documentation built on March 25, 2020, 5:32 p.m.