getCountTs: Build a univariate time series of counts (or distinct counts)...

Description Arguments Value

View source: R/getCountTs.r

Description

Build a univariate time series object from a specified table within a given data range.

Arguments

connectionDetails

An R object of type
connectionDetails created using the function createConnectionDetails in the DatabaseConnector package.

dbSchema

A fully qualified CDM or Results schema name.

tableName

A valid table name.

dateColumnName

A valid date column in the specified table.

startDate

A string date in the "YYYY-MM-DD" format

endDate

A string date in the "YYYY-MM-DD" format

dataColumnName

The column in the specified table to count.

isCountDistinct

A boolean indicating whether or not to count distinct rows of the specified data column.

frequency

A string indicating the number of observations per unit of time in the time series. Acceptable values are "day","week","month","quarter", and "year".

Value

A univariate time series object


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