rangeCheck: Out-of-Range Report

Description Usage Arguments Examples

Description

Generate a report on the frequency of variables found outside the user-defined range.

Usage

1
2
  rangeCheck(data, colheader = "Variable", panel,
    append = FALSE)

Arguments

data

data.frame. Contains information required to perform checks. ‘dataframe’ should be the name of the data.frame to check. ‘variable’ is the name of the variable to check. ‘label’ is the variable label. ‘min’ is the minimum value. ‘max’ is the maximum value. ‘units’ is the unit of measurement.

colheader

character. Column header for table.

panel

character. Name for panel.

append

append logical. If ‘TRUE’ output will be appended instead of overwritten.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
  load(url('http://biostat.mc.vanderbilt.edu/wiki/pub/Main/Rreport/ssafety.rda'))
  rules <- data.frame(
    dataframe = rep('ssafety', 4),
    variable = c('age', 'height', 'weight', 'bmi'),
    label = c('age', 'height', 'weight', 'bmi'),
    min = c(45, 145, 50, 15),
    max = c(80, 180, 140, 40),
    units = c('years', 'cms', 'kgs', 'cm/kg')
  )
  rangeCheck(rules, panel='check')

## End(Not run)

harrelfe/rreport documentation built on May 17, 2019, 2:48 p.m.