create_id_column: Function to create an id column from a character column

Description Usage Arguments Value Examples

View source: R/create_id_column.R

Description

Function to create an id column from a character column

Usage

1

Arguments

df

the dataframe that is used

col

the column name in NSE format that should be converted

Value

a dataframe with an additional gghid column

Examples

1
mtcars %>% tibble::rownames_to_column() %>% create_id_column(rowname)

gghilbertstrings documentation built on April 7, 2021, 9:07 a.m.