Extract the elements and generate a table with unique elements

prExtractElementsAndConvertToTbl(x, elements)

Arguments

x

list with columns to be joined

elements

char vector with the elements to select