getPeriodType: Get Period Type

View source: R/periodUtils.R

getPeriodTypeR Documentation

Get Period Type

Description

Utility function return a DHIS2 period type from an ISO string

Usage

getPeriodType(iso)

Arguments

iso

String which identifies the period, such as 2016Q1 or 2016Q2

Value

Returns a a character of the period, like "Monthly"

Examples

getPeriodType("2018Q3")
getPeriodType("2018")
getPeriodType("19730221")
getPeriodType("201904")
getPeriodType("2018Q4")


jason-p-pickering/datim-validation documentation built on April 20, 2023, 5:32 a.m.