split_datetime: Split date object into 8 components(year, month, day, the day...

Description Usage Arguments Value

Description

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

Usage

1
split_datetime(.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. <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.