The goal of incadata is to provide basic functionality to handle data from INCA and the Regional cancer centers in Sweden.
You can install the released version of incadata from CRAN with:
install.packages("incadata")
And the development version from BitBucket with:
# install.packages("remotes") remotes::install_bitbucket("cancercentrum/incadata")
The function as.incadata
standardize data from INCA and Rockan:
1985-05-04
, ""
, 19850504
, 19850500
, 19850000
and 8513
).c(0, 1, 0, 1, 0, 0)
, but coerced to character when exported: c(NA, "True", NA, "True", NA, NA)
. The package recognize this peculiarity and coerce to Boolean.id
column is always added to data frames in order to always have an identification variable at hand (regardless if the data has none or one of PERSNR, PNR or PAT_ID)The package also provides functionality for easier access and archiving of register documentation (se vignette âincadocâ) and function documents
.
The package also lets you: