Learn R Programming

⚠️There's a newer version (0.9.1) of this package.Take me there.

incadata

Package to handle datasets in INCA format

The package is primarly used to create a new data object of class "incadata" (inharating from class "tbl" in dplyr). All variables are coerced to suitable classes based on their format. Dates are recognised as dates (through the rccdates package), logical variables (with values "" and "True" in INCA) will be boolean, variablev with names ending in "_Beskrivning" and "_Varde" will be factors, variable with name "PERSNR" will be coerced to "pin" (by the "sweidnumbr" package) etcetera.

Install

The package is primarly intended for use as a part of the rcc2 package but can also be installed independently:

devtools::install_bitbucket("cancercentrum/incadata")

Introduction

The package contains two vignettes. Find them after installation by browseVignettes("incadata").

Copy Link

Version

Install

install.packages('incadata')

Monthly Downloads

26

Version

0.5.3

License

GPL-2

Maintainer

Erik Bulow

Last Published

February 15th, 2017

Functions in incadata (0.5.3)

lt

Lead time from one date to another
dplyr_methods

dplyr methods for INCA data
ex_data

Example data from INCA
is.incalogical

Coerce to logical if value is logical according to INCA
id

Add id variables to data frame
as.Dates

Converting potential date to Date vector
as.incadata

Coerce to object of class "incadata"
reexports

Objects exported from other packages
use_incadata

Use incadata from file or dataframe df