checkMicroData: Check utable outputs for microdata

View source: R/checkMicroData.R

checkMicroDataR Documentation

Check utable outputs for microdata

Description

This function checks a summarized utable object for microdata. Currently it checks all data colums and all rows. This means it may flag means, medians, etc as microdata, even though they might be fine to export (i.e if the mean value of some variable is 2, this function will flag it as microdata).

Usage

checkMicroData(dat, min.val = 5)

Arguments

dat

Table to be checked. Must be the summarized output of Publish::utable()

min.val

The minimum value allowed, anything below this value will be flagged as microdata

Value

A message showing the location of any microdata found, or a statement that no microdata was found

Examples

checkMicroData(summary(Publish::utable(cyl ~ vs, data=mtcars)))

tagteam/heaven documentation built on Oct. 24, 2024, 7:40 p.m.