transform_wikidata_coords.Rd
Get coords at lat-lng from Wikidata format
transform_wikidata_coords(data, coord_column, prefix = "")
data | a tibble |
---|---|
coord_column | the name of the column with coordinates formatted as 'Point(..... ....)' |
prefix | the prefix to be appended to "lat-lng" columns (defaults to "" -no prefix-) |
query='SELECT ?item ?itemLabel ?coords ?date { ?item wdt:P361 wd:Q1552; wdt:P625 ?coords. OPTIONAL{?item wdt:P1619 ?date.} SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } } ORDER BY ?itemLabel ' tib=send_query(query)#> Error in send_query(query): impossible de trouver la fonction "send_query"transform_wikidata_coords(tib, "coords")#> Error in stri_extract_first_regex(string, pattern, opts_regex = opts(pattern)): objet 'tib' introuvable