clean.sapa: Scrub SAPA of duplicate participants and bad ages

Description Usage Arguments Value Author(s) References Examples

Description

Scrubs SAPA of duplicate participants. Also returns a clean SAPA dataframe containing ages within min.age and max.age.

Usage

1
clean.sapa(x, max.age = 91, min.age = 13, age=TRUE, unique=TRUE)

Arguments

x

SAPA data.frame to scrub

max.age

Maximum age desired

min.age

Minimum age desired

age

Logical to scrub bad ages

unique

Logical to scrub duplicate participants

Value

data.frame

Returned SAPA data.frame

Author(s)

Jason A. French jason@sapa-project.org and David M. Condon

Maintainer: Jason A. French

References

http://sapa-project.org/r

Examples

1
2
3
4
5
# con.active <- sapa.db()

# sapa.table <- get.sapa(con=con.active)

# clean.table <- clean.sapa(sapa.table)

frenchja/SAPATools documentation built on May 16, 2019, 2:47 p.m.