find_keys look at all function in a table and returns the list of possible keys (ie variables which identifies an observation)
find_keys(table)
table | the name of the input table (either tibble or data.frame) |
---|
a tibble with one column : keys
library("readr") read_csv(system.file("extdata", "table_deputes.csv", package = "tricky")) %>% find_keys()#>#> #> #> #> #> #> #> #> #> #> #> #>#> Warning: Truncating vector to length 1#> keys #> 1 nom #> 2 genre #> 3 prenom #> 4 nom_famille #> 5 date_naissance #> 6 lieu_naissance #> 7 circonscription #> 8 sycomore_id #> 9 wikidata #> 10 frwiki