get_year: Get Year of Data

View source: R/year.R

get_yearR Documentation

Get Year of Data

Description

Get the year of the rawdata either when it's available in the rawdata or manually specified in the registration database. Check helper function is_defaar().

get_aar() is an alias of get_year()

Usage

get_year(spec = NULL, con = NULL)

get_aar(spec = NULL, con = NULL)

Arguments

spec

Specifications data as a data.frame

con

Connection to database

Value

Either a character or integer value.

  • Character value is refering to the column name in the raw data that has value for year.

  • Integer value refers to the year that shoule be added to the raw data with column name AAR


helseprofil/orgdata documentation built on Feb. 3, 2025, 4:55 p.m.