Skip to contents

Useful due to the reliance on original_name as an 'id' throughout env packages. If not removed, quotes are sometimes escaped by the underlying functions used, apparently creating duplicates among original_name.

Usage

clean_quotes(df, cols = "original_name")

Arguments

df

Dataframe

cols

Character. Column from which to remove quotes

Value

Dataframe with quotes removed from cols

Examples

x <- data.frame(a = c("species A", "species 'A'"))
clean_quotes(x, cols = "a")
#>           a
#> 1 species A
#> 2 species A