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/dgfunctionpack documentation built on May 17, 2020, 9:58 p.m.