variable_allowed_dates: Get a set of all dates that satisfy given conditions

Description Usage Arguments See Also

View source: R/data-check.R

Description

This is intended to be called from data_check_standard for checkiing date variables. It returns a vector of dates in a "yyyy-mm-dd" format.

Usage

1
2
3
4
5
6
variable_allowed_dates(
  year1,
  valid_years = year1:substr(Sys.Date(), 1, 4),
  valid_months = c(paste0("0", 1:9), 10:12),
  valid_days = c(paste0("0", 1:9), 10:31)
)

Arguments

year1

first allowed year

valid_years

set of allowed years

valid_months

set of allowed months

valid_days

set of allwed days

See Also

Other functions to check data format: data_check_standard()


southwick-associates/salicprep documentation built on Oct. 6, 2020, 12:03 p.m.