Performs a typo-tolerant, approximate search against the GLEIF API. Unlike the filters in
lei_records(), which match literal substrings, this matches on edit distance and returns
candidate values together with their LEI. Useful for resolving messy or misspelled entity names
to a LEI, which can then be passed to lei_record_by_id().
Usage
lei_fuzzy(q, field = c("fulltext", "entity.legalName", "owns", "ownedBy"))Value
A data.frame() with columns:
value: The matched value
lei: The Legal Entity Identifier of the matched record, or
NAif none is linked
See also
lei_autocomplete() for prefix-based completion, lei_record_by_id() for full records.
Examples
# \donttest{
lei_fuzzy("Deutsch Bank", field = "entity.legalName")
#> value lei
#> 1 DEUTSCHE BANK SA 529900J2KCFIPEYJIE34
#> 2 DEUTSCHE BANK S.P.A. 529900SS7ZWCX82U3W60
#> 3 Deutsche Bank Stiftung 391200PCHLV827FDCB76
#> 4 Deutsche Bank (Chile) S.A 549300B4Z1JOQPQSVA53
#> 5 Deutsche Bank Europe GmbH 213800QILIUD4ROSUO03
#> 6 Deutsche Bank (Perú) S.A. 529900N94W687OHXIV81
#> 7 DEUTSCHE BANK SA ESPAÑOLA 529900SICIK5OVMVY186
#> 8 Deutsche Bank (Suisse) SA 529900BXKPMXQTRE1V05
#> 9 Deutsche Bank (Chile) S.A. 529900S441FVQLZIRQ90
#> 10 DEUTSCHE BANK MUTUI S.P.A. 8156006ACD5E92B0C985
# }