pickFields: Picks Fields of Focus

Description Usage Arguments Value Note Examples

View source: R/pickFields.R

Description

Takes the output of getField() and squashes down rows that are not of interest to prepare the tibble for use as the input to mkNCDB().

Usage

1
2
3
4
pickFields(d, picks = c("casenum", "facID", "fac", "facLoc", "agedx",
  "sex", "race", "ins", "inc", "educ", "urban", "crow", "charlson",
  "seqnum", "CoC", "yrdx", "histo3", "stageC", "d2t", "radiatn", "d2c",
  "chemo", "hct", "surv", "alive"))

Arguments

d

Tibble produced by getFields().

picks

Short names of fields you wish to keep.

Value

Input dataframe with rows not wanted collapsed to strings. This output feeds into mkNCDB().

Note

Inspired by a function of the same name in SEERaBomb.

Examples

1
2
3
4
5
## Not run: 
library(NCDBR)
d=getFields()
pickFields(d) 
## End(Not run)

SophiaJia/NCDBR documentation built on May 29, 2019, 12:36 p.m.