resequence: Resorting and filtering dates

Description Usage Arguments Value Examples

View source: R/resequence.R

Description

Resorting and filtering dates

Usage

1
resequence(data, vars, unity = "\\.\\.")

Arguments

data

a dataframe

vars

a character vector identifying columns in the dataframe to sequence

unity

a string identifying how multiple entries may be glued together. By default, ".." are used in accordance with ISO 8601-2_2019(E) standards.

Value

a dataframe/columns

Examples

1
2
3
4
5
data <- data.frame(Sign = c("2000-01-01", "2001-01-01",
"2001-01-01..2000-01-01", "2000-01-01", NA, "2016-12-31~"),
Force = c("2001-01-01", "2000-01-01",
"2001-01-01", NA, "2001-XX-XX", "~1816_01_01"))
resequence(data, c("Sign", "Force"))

messydates documentation built on Nov. 12, 2021, 5:06 p.m.