create_flag | R Documentation |
create flag
create_flag(.data, col, flag, full_name = FALSE, drop = FALSE)
.data |
data frame |
col |
column |
flag |
column entry |
full_name |
Logical. default F. if T, new column name is original name + flag. other wise just flag |
drop |
logical. default F. If T, drop original column. |
data frame
iris %>%
create_flag(
col = Species,
flag = "versicolor",
drop = TRUE) %>%
head()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.