Description Usage Arguments Value Note Examples
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()
.
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"))
|
d |
Tibble produced by |
picks |
Short names of fields you wish to keep. |
Input dataframe with rows not wanted collapsed to strings. This output feeds into mkNCDB()
.
Inspired by a function of the same name in SEERaBomb.
1 2 3 4 5 | ## Not run:
library(NCDBR)
d=getFields()
pickFields(d)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.