cleanup_date: Cleans up date from data frame

Description Usage Arguments Value See Also Examples

View source: R/cleanup-datetime.r

Description

Cleans up date from data frame

Usage

1
2
cleanup_date(data, prefix = "", suffix = "", expand = c("Year", "Month",
  "Day"))

Arguments

data

data.frame with columns of [prefix]expand[suffix], [prefix]expand[suffix] values etc

prefix

string

suffix

string

expand

character vector of column names where [prefix]expand[suffix] and expand must only be Year, Month, Day

Value

Cleaned up data

See Also

cleanup_datetime

Examples

1
2
data <- data.frame(Year = 2000, Month = 1:4, Day = 2, Comments = 'No way')
cleanup_date(data)

poissonconsulting/poiscon documentation built on Feb. 18, 2021, 11:16 p.m.