Skip to contents

Retrieves comprehensive country information for South Korea from the REST Countries API. This function fetches data including official and common names, geographical information, capital, area, population, and languages.

Usage

get_country_info_kr()

Value

A tibble with one row containing South Korea's country information, or NULL if the API is unavailable.

Examples

# \donttest{
sk_info <- get_country_info_kr()
print(sk_info)
#> # A tibble: 1 × 8
#>   name_common name_official region subregion capital   area population languages
#>   <chr>       <chr>         <chr>  <chr>     <chr>    <dbl>      <int> <chr>    
#> 1 South Korea Republic of … Asia   Eastern … Seoul   100210   51780579 Korean   
# }