indicator: Define indicators for data

Description Usage Arguments Details See Also Examples

View source: R/indicator.R

Description

This feature is currently experimental and may change in future versions

Usage

1

Arguments

...

A comma-separated list of indicator definitions

.file

(optional) A character vector of file locations

Details

indicator

See Also

syntax

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# create an indicator for the number of missing x in data set
I <- indicator( 
   number_missing(x)     # number of missing x
 , number_missing(x,y)   # number of missing x and y
 , number_missing()      # number of missing variables
 , fraction_missing()    # fraction of missing variables
 , sum(x)
 , mean(x)
) 

dat <- data.frame(x=1:2, y=c(NA,1))
C <- confront(dat, I)
values(C)

validate documentation built on Aug. 8, 2017, 1:06 a.m.