Functions to be used in conjunction with 'dcc' family
Usage
extract_unique(df)
extract_unique2(df)
extract_unique3(df)
extract_unique4(df)
extract_unique5(df)
Arguments
- df
a data frame
Value
a list whose elements are character vectors of the
unique values of each column
Examples
data("invented_wages")
tmp <- extract_unique(df = invented_wages[, c("gender", "sector")])
tmp
#> $gender
#> [1] "men" "women"
#>
#> $sector
#> [1] "tertiary" "secondary"
#>
str(tmp)
#> List of 2
#> $ gender: chr [1:2] "men" "women"
#> $ sector: chr [1:2] "tertiary" "secondary"