create_flag {framecleaner} | R Documentation |
create flag
Description
create flag
Usage
create_flag(.data, col, flag, full_name = FALSE, drop = FALSE)
Arguments
.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. |
Value
data frame
Examples
iris %>%
create_flag(
col = Species,
flag = "versicolor",
drop = TRUE) %>%
head()
[Package framecleaner version 0.2.1 Index]