common_group
find the common elements of selected groups
common_group(dat, group_vec, ref_vec)
a dataframe, preferably the wide format
grouping vector, contain column names to be examine
reference vector, contain column names of target to be check
a data table with range/elements of each column
common_group(mtcars,"cyl","gear")
#> Unique gear of 3 groups
#> [1] 3 5
common_group(iris,"Species","Sepal.Length")
#> Unique Sepal.Length of 3 groups
#> [1] 4.9 5.8 5.7