rtri_recent: Get List of RTRI Recent Clients

View source: R/rtri_recent.R

rtri_recentR Documentation

Get List of RTRI Recent Clients

Description

Get List of RTRI Recent Clients

Usage

rtri_recent(data, from = NULL, to = NULL, states = NULL, facilities = NULL)

Arguments

data

An NDR dataframe imported using the read_ndr().

from

The start date in ISO8601 format (i.e. "yyyy-mm-dd"). The default is to start at the beginning of the current Fiscal Year (i.e. 1st of October).

to

The end date written in ISO8601 format (i.e. "yyyy-mm-dd"). The default is the date of analysis.

states

The name(s) of the State(s) of interest. The default utilizes all the states in the dataframe. If specifying more than one state, combine the states using the c() e.g. c("State 1", "State 2").

facilities

The name(s) of the facilit(ies) of interest. Default is to utilize all the facilities contained in the dataframe. If specifying more than one facility, combine the facilities using the c() e.g. c("Facility 1", "Facility 2").

Value

Line-list of clients with who are RTRI Positive

Examples

## Line-list RTRI recent persons for 'Arewa' state for the first quarter of 2021
rtri_recent(recency_example, states = "Arewa", from = "2021-01-01", to = "2021-03-31")


tidyndr documentation built on April 8, 2022, 9:06 a.m.