rearrange_dates: Rearrange dates

Description Usage Arguments Value Examples

View source: R/rearrange_dates.R

Description

This function takes as input a vector of characters representing dates, (i.e. "2015-9-28"), in any format, converts it into iso time and split years, months, and day

Usage

1

Arguments

dates

a character vector of dates

Value

a data.frame containing the dates in ISO format, years, months, and days

Examples

1
2
3
4
5
6
year <- c(rep(2014,12), rep(2015, 12), rep(2016, 12))
month <- rep(1:12, 3)
day <- sample(1:28, 36, replace = TRUE)
my_date <- paste(year, month, day, sep="-")

rearrange_dates(my_date)

nibortolum/brunisol documentation built on Nov. 4, 2019, 10:14 p.m.