View source: R/data_expectations.R
Check if a set of columns are dates. Useful for debugging PowerBI R scripts with dates.
1 | expect_date(df, cols, stop_if_fail = TRUE, return_df = TRUE)
|
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) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.