Handle data in formats used by cancer centers in Sweden, both from INCA (the current register platform, (see for more information) and by the older register platform Rockan (used in the Western and Northern part of the country). All variables are coerced to suitable classes based on their format. Dates (from various formats such as with missing month or day, with or without century prefix or with just a week number) are all recognised as dates and coerced to the ISO 8601 standard (Y-m-d). Boolean variables (internally stored either as 0/1 or "True"/"False"/blanks when exported) are coerced to logical. Variable names ending in '_Beskrivning' and '_Varde' will be character, and 'PERSNR' will be coerced (if possible) to a valid personal identification number 'pin' (by the 'sweidnumbr' package). The package also allow the user to interactively choose if a variable should be coerced into a potential format even though not all of its values might conform to the recognised pattern. It also contain a caching mechanism in order to temporarily store data sets with its newly decided formats in order to not rerun the identification process each time.

Documentation

Manual: incadata.pdf
Vignettes:

Maintainer: Erik Bulow <erik.bulow at rccvast.se>

Author(s): Erik Bulow

Install package and any missing dependencies by running this line in your R console:

install.packages("incadata")

Depends R (>= 2.10)
Imports backports, decoder, dplyr, rccmisc, sweidnumbr
Suggests testthat, knitr, rmarkdown
Enhances
Linking to
Reverse
depends
Reverse
imports
Reverse
suggests
Reverse
enhances
Reverse
linking to

Package incadata
Materials
URL https://www.bitbucket.org/cancercentrum/incadata
Task Views
Version 0.5.3
Published 2017-02-15
License GPL-2
BugReports https://www.bitbucket.org/cancercentrum/incadata/issues
SystemRequirements
NeedsCompilation no
Citation
CRAN checks incadata check results
Package source incadata_0.5.3.tar.gz