powered by
create flag
create_flag(.data, col, flag, full_name = FALSE, drop = FALSE)
data frame
column
column entry
Logical. default F. if T, new column name is original name + flag. other wise just flag
logical. default F. If T, drop original column.
iris %>% create_flag( col = Species, flag = "versicolor", drop = TRUE) %>% head()
Run the code above in your browser using DataLab