create_flag: create flag

View source: R/create_flag.R

create_flagR 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()


Harrison4192/dataCleaner documentation built on March 20, 2024, 3:12 p.m.