getTsYear: Return the four digit year for each element of a given time...

Description Usage Arguments Value

View source: R/getTsYear.r

Description

The function time in the
stats package returns the date in fractions. This function converts that value to the proper four digit integer.

Usage

1
year <- getYear(tsData)

Arguments

tsData

A Time Series Object.

Value

A vector of 4 digit integers (representing years).


OHDSI/Castor documentation built on March 20, 2021, 6:09 p.m.