rccdates: Date Functions for Swedish Cancer Data

Share:

Identify, convert and handle dates as used within the Swedish cancer register and associated cancer quality registers in Sweden. Especially the cancer register sometimes use nonstandard date variables where day and/or month can be "00" or were the date format is a mixture of"%Y-%m-%d", "%Y%m%d" and "%y%V" (two digit year and week number according to ISO 8601,which is not completely supported by R).These dates must be approximated to valid dates before being used in for example survival analysis. The package also includes some convenient functions for calculating "lead times" (relying on 'difftime') and introduce a "year" class with relevant S3-methods to handle yearly cohort.

Author
Erik Bulow
Date of publication
2016-07-01 16:33:32
Maintainer
Erik Bulow <erik.bulow@rccvast.se>
License
GPL-2
Version
1.0.0

View on CRAN

Man pages

asDate
as.Date with format = "%Y-%m-%d"
as.Dates
Converting all potential dates in a data.frame
as.year
Year vectors
as.yyww
Coerce yyww-variable to a valid date.
lt
Lead time from one date to another
rccdates
Date functions for RCC (INCA and Rockan format)

Files in this package

rccdates
rccdates/inst
rccdates/inst/doc
rccdates/inst/doc/rccdates.R
rccdates/inst/doc/rccdates.html
rccdates/inst/doc/rccdates.Rmd
rccdates/tests
rccdates/tests/testthat.R
rccdates/tests/testthat
rccdates/tests/testthat/test-as.Dates.data.frame.R
rccdates/tests/testthat/test-internals.R
rccdates/tests/testthat/test-as.year.R
rccdates/tests/testthat/test_asDate.R
rccdates/tests/testthat/test-as.Dates.Date.R
rccdates/tests/testthat/test-lt.R
rccdates/tests/testthat/test-as.Dates.default.R
rccdates/NAMESPACE
rccdates/R
rccdates/R/internals.R
rccdates/R/as.Dates.Date.R
rccdates/R/rccdates.R
rccdates/R/as.Dates.default.R
rccdates/R/lt.R
rccdates/R/as.Dates.data.frame.R
rccdates/R/asDate.R
rccdates/R/as.Dates.R
rccdates/R/as.year.R
rccdates/R/as.Dates.year.R
rccdates/vignettes
rccdates/vignettes/rccdates.Rmd
rccdates/README.md
rccdates/MD5
rccdates/build
rccdates/build/vignette.rds
rccdates/DESCRIPTION
rccdates/man
rccdates/man/rccdates.Rd
rccdates/man/as.yyww.Rd
rccdates/man/as.Dates.Rd
rccdates/man/asDate.Rd
rccdates/man/as.year.Rd
rccdates/man/lt.Rd