make_k_score: Make k score out of de-identified data

Description Usage Arguments Value Examples

View source: R/make_k_score.R

Description

This gives you a data.frame with rows grouped based on the columns parameter and tell you how many unique values are in each group.

Usage

1
make_k_score(data, columns = NULL, quiet = FALSE, minimum_k_score = 3)

Arguments

data

The data.frame with the data you want to make the k score from.

columns

A string or vector of strings for the names of columns to group the data by.

quiet

A Boolean (default FALSE) for whether you want to output a message that tells you if there are groups with too few observations - you can set how many is 'too few' in the parameter minimum_k_score, default is 3.

minimum_k_score

A single integer which sets the number of observations in each group that will message (if quiet is FALSE) saying how many groups have fewer observations below that group.

Value

A data.frame

Examples

1
make_k_score(mtcars, columns = c("cyl", "vs", "am", "gear"))

phillydao/deidentify documentation built on Feb. 4, 2021, 2:31 p.m.