getTsMonth: Return the two digit month for a each element of a given time...

Description Usage Arguments Details Value

View source: R/getTsMonth.r

Description

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

Usage

1
tsMonth <- getMonth(tsData)

Arguments

tsData

A time series object.

Details

Since yearly (4 digit only) time series have no month and since weeks can span months, this function is only supported for daily and monthly time series.

Value

A vector of integers (representing months).


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