Search a pattern among insee datasets and idbanks
search_insee(pattern = ".*")
the dataset and idbank table filtered with the pattern
The data related to idbanks is stored internally in the package and might the most up to date. The function ignores accents and cases.
# \donttest{
# example 1 : search one pattern, the accents do not matter
writeLines("the word 'enqu\U00EAte' (meaning survey in French) will match with 'enquete'")
#> the word 'enquête' (meaning survey in French) will match with 'enquete'
dataset_enquete = search_insee("enquete")
#>
#> Internal package data has been used, it may not be the most up-to-date data
#> This message is displayed once per R session
#>
#> Data cached : /var/folders/4d/0gnh84wj53j7wyk695q0tc_80000gn/T//RtmpLADV6b/0b6a37256556fa8a26dfaa63ad607e8f.rds
#>
# example 2 : search multiple patterns
dataset_survey_gdp = search_insee("Survey|gdp")
#> Data cached : /var/folders/4d/0gnh84wj53j7wyk695q0tc_80000gn/T//RtmpLADV6b/5cd15dacd6f364353ce8ee2e236dca1f.rds
#>
# example 3 : data about paris
data_paris = search_insee('paris')
#> Data cached : /var/folders/4d/0gnh84wj53j7wyk695q0tc_80000gn/T//RtmpLADV6b/a4c1646c363ac14e4deee9c292866374.rds
#>
# example 4 : all data
data_all = search_insee()
#> Data cached : /var/folders/4d/0gnh84wj53j7wyk695q0tc_80000gn/T//RtmpLADV6b/0879d8d7f6787ad55fe4fed5504761e5.rds
#>
# }