update_archived_data: Update archived data

View source: R/update_archived_data.R

update_archived_dataR Documentation

Update archived data

Description

Read in current archived data, and update it.

Usage

update_archived_data(
  curr_data,
  period = "none",
  date_to = NULL,
  format_date = "%Y-%m-%d",
  tzone_date = "UTC"
)

Arguments

curr_data

Archived data set from RapidPro (can be generated by get_archived_data).

period

Default "none". A character string giving the period of time. One of "monthly", "daily", or "none".

date_to

character string giving the date to filter the data to.

format_date

from ⁠as.POSIX*⁠ function: character string giving a date-time format as used by strptime.

tzone_date

from ⁠as.POSIX*⁠ function: time zone specification to be used for the conversion, if one is required. System-specific (see time zones), but "" is the current time zone, and "GMT" is UTC (Universal Time, Coordinated). Invalid values are most commonly treated as UTC, on some platforms with a warning.

Value

Updated archived data


lilyclements/Rapidreadr documentation built on April 17, 2025, 6:10 p.m.