View source: R/column_type_checker.R
column_type_checker | R Documentation |
Quick function for checking if a column is of the right type using data-masking
column_type_checker(data, column, type)
data |
Data Frame or Tibble object |
column |
Column you want to check |
type |
|
a character vector
## Not run:
check_text <- df %>% column_type_checker(text_var, "character")
if(check_text == "no") stop("Wrong type")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.