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")


pepfar-datim/datim-validation documentation built on Oct. 17, 2024, 3:45 p.m.