df_ue find unique elements plus matching services

df_ue(df, coln, pattern = NULL)

Arguments

df

a dataframe, include columns xvar and yvar

coln

unquote column name, if `coln`="cnames", then return colnames

pattern

`NULL`, else match pattern in unique coln values

Value

unique values of a column

Author

Tien-Cheng Wang

Examples

  library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
  df_ue(iris,Species)
#> [1] "setosa"     "versicolor" "virginica" 
  df_ue(iris,Species,"virg")
#> [1] "virginica"