ts_ymwdh_tbl: Make a tibble with year, month, week, week day and hour...

Description Usage Arguments Details Value Author(s) Examples

View source: R/ts_ymwdh_tbl.R

Description

Returns a tibble that has year, month, week, week day and hour added from a date column

Usage

1
ts_ymwdh_tbl(.data, .date_col)

Arguments

.data

The data that is being analyzed, data must be a tibble/data.frame

.date_col

The column of the tibble that holds the date

Details

Value

A tibble

Author(s)

Steven P Sanderson II, MPH

Examples

1
2
3
4
5
6
7
library(timetk)
library(dplyr)
library(lubridate)
ts_ymwdh_tbl(
  .data = m4_daily
  , .date_col = date
)

spsanderson/LICHospitalR documentation built on Jan. 6, 2022, 12:32 a.m.