getPrepData: Data managment on tables

getPrepDataR Documentation

Data managment on tables

Description

Load data and apply data-managment operations. Tables can be used in pivot-table or in monthly reports.

Usage

getPrepApData(
  registryName,
  fromDate,
  toDate,
  singleRow,
  singleHospital = NULL,
  ...
)

getPrepSoData(registryName, fromDate, toDate, singleRow, ...)

getPrepAkData(
  registryName,
  fromDate,
  toDate,
  singleRow,
  singleHospital = NULL,
  ...
)

getPrepFoData(registryName, fromDate, toDate, singleRow, ...)

getPrepAnPData(
  registryName,
  fromDate,
  toDate,
  singleRow,
  singleHospital = NULL,
  ...
)

getPrepCtData(registryName, fromDate, toDate, singleRow, ...)

getPrepAkOppfData(registryName, fromDate, toDate, singleRow, ...)

getPrepAnDData(
  registryName,
  fromDate,
  toDate,
  singleRow,
  singleHospital = NULL,
  ...
)

getPrepSsData(
  registryName,
  fromDate,
  toDate,
  singleRow,
  singleHospital = NULL,
  ...
)

getPrepMkData(registryName, fromDate, toDate, singleRow, ...)

getPrepPsData(registryName, fromDate, toDate, singleRow, ...)

getPrepApLightData(registryName, fromDate, toDate, singleRow, ...)

getPrepTaviPromData(registryName, fromDate, toDate, singleRow, ...)

Arguments

registryName

String providing the registry name

fromDate

A Date or character class object of format "YYYY-MM-DD" defining start of the period from which data will be collected. Default is NULL in which case til will be set to the assumed pre-historic date of "1900-01-01".

toDate

A Date or character class object of format "YYYY-MM-DD" defining end of the period from which data will be collected. Default is NULL in which case til will be set to the last known registration date for NORIC.

singleRow

Logical defining if only one row is to be returned. A relevant usecase will be when only description is needed. By default set to FALSE

singleHospital

if only data from one hospital, when national database. Default value is NULL, contains reshID of selected hospital else.

...

Optional arguments to be passed to the function

Value

Data frame representing the chosen table. Basic data managment is done (e.g. added variables from FO, added time-variables, rename hospitals)


Rapporteket/NORIC documentation built on Feb. 15, 2024, 5:25 p.m.