validateNewColumn | R Documentation |
Validate a new column of a table
validateNewColumn(table, column, validation = "warning", call = parent.frame())
table |
The table to check if the column already exists. |
column |
Character vector with the name(s) of the new column(s). |
validation |
Whether to throw warning or error. |
call |
Passed to cli functions. |
table without conflicting columns.
x <- dplyr::tibble(
column1 = c(1L, 2L),
column2 = c("a", "b")
)
validateNewColumn(x, "not_exiting_column")
validateNewColumn(x, "column1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.