format_date: Format and validate date columns

Description Usage Arguments Value

View source: R/validate.R

Description

Format and validate date columns

Usage

1
2
3
4
5
format_date(
  cows,
  date_format = "ymd",
  today = lubridate::today(tzone = "Asia/Tokyo")
)

Arguments

cows

A cow_table.

date_format

One of "ymd", "ydm", "myd", "mdy", "dym", "dmy".

today

A date class object indicates today.

Value

A cow_table whose date columns are formatted.


fmsan51/blvibmjp documentation built on Sept. 2, 2020, 9:04 p.m.