split_date: Split date object into 4 components(year, month, day and the...

Description Usage Arguments Value

Description

Split date object into 4 components(year, month, day and the day of week) to a format that works better when you want to specify the effect of year, month, day or the day of week.

Usage

1
split_date(.data, ..., sep = "_", format = NULL)

Arguments

.data

A tbl.

...

One or more unquoted expressions separated by commas. You can treat variable names like they are positions. It supports [dplyr::select] comparable.

sep

Separator between columns.

format

a character string of formats. It should include all the separators and each format must be prefixed with argument of strptime.

Value

An object of the same class as .data with "preprocessing-chain" attribution. https://cran.r-project.org/web/packages/roxygen2/vignettes/rd.html <prefix>weekday columns is the day of the week as a number (1-7, Sunday is 1).


teramonagi/dpurifyr documentation built on May 29, 2019, 9:52 a.m.