create_id_column {gghilbertstrings} | R Documentation |
Function to create an id column from a character column
create_id_column(df, col)
df |
the dataframe that is used |
col |
the column name in NSE format that should be converted |
a dataframe with an additional gghid column
mtcars %>% tibble::rownames_to_column() %>% create_id_column(rowname)