powered by
Function to return the unique contents of the column given the column name
get_contents_cols(data, colname)
the contents of the column, if success error if failure
a data frame
name of column corresponding to year of birth
get_contents_cols(data.frame( "yob" = c(1951, 1980), "Name" = c("John", "Dora") ), "yob")
Run the code above in your browser using DataLab