expect_date: Check if a set of columns are dates. Useful for debugging...

Description Usage Arguments

View source: R/data_expectations.R

Description

Check if a set of columns are dates. Useful for debugging PowerBI R scripts with dates.

Usage

1
expect_date(df, cols, stop_if_fail = TRUE, return_df = TRUE)

Arguments

cols

character vector of columns names to check if dates

stop_if_fail

T/F for whether to consider failure an error

return_df

T/F whether to end function with dataframe input (as in if a check in part of a pipe)


dgarmat/expectdata documentation built on Oct. 22, 2019, 5:19 a.m.