igo_search: Search and Find an IGO

View source: R/igo_search.R

igo_searchR Documentation

Search and Find an IGO

Description

Search any IGO by name or string pattern.

Usage

igo_search(pattern = NULL, exact = FALSE)

Arguments

pattern

regex pattern. If NULL the function returns a dataset with all the IGOs on igo_year_format3. Integer values are accepted.

exact

Logical. When TRUE only exact matches are returned.

Details

The information of each IGO is retrieved based on the last year available on igo_year_format3.

An additional column label is provided. This column is a clean version of longorgname

Value

A dataframe.

See Also

igo_year_format3

Examples

# All values
all <- igo_search()

nrow(all)
colnames(all)

dplyr::tibble(all)

# Search by pattern
igo_search("EU")[, 1:3]

igo_search("EU", exact = TRUE)[, 1:3]

# With integers
igo_search(10)[, 1:3]

igo_search(10, exact = TRUE)[, 1:3]

# Several patterns (regex style)
igo_search("NAFTA|UN|EU")[, 1:3]

# Several patterns Exact (regex style)
igo_search("^NAFTA$|^UN$|^EU$")[, 1:3]

igoR documentation built on April 14, 2023, 5:10 p.m.