https://github.com/cran/spData
Raw File
Tip revision: fbffe5b74d6244d4f42f9e88dd6038782467c2e3 authored by Jakub Nowosad on 31 May 2024, 15:10:02 UTC
version 2.3.1
Tip revision: fbffe5b
world.R
#' @name world
#' @aliases wrld
#' @title World country polygons
#'
#' @description The object loaded is a \code{sf} object containing a world map data from Natural Earth with a few variables from World Bank
#' 
#' @format Formal class 'sf' [package "sf"]; the data contains a data.frame with 177 obs. of 11 variables:
#' \itemize{
#'     \item{iso_a2: character vector of ISO 2 character country codes}
#'     \item{name_long: character vector of country names}
#'     \item{continent: character vector of continent names}
#'     \item{region_un: character vector of region names}
#'     \item{subregion: character vector of subregion names}
#'     \item{type: character vector of type names}
#'     \item{area_km2: integer vector of area values}
#'     \item{pop: integer vector of population in 2014}
#'     \item{lifeExp: integer vector of life expectancy at birth in 2014}
#'     \item{gdpPercap: integer vector of per-capita GDP in 2014}
#'     \item{geom: sfc_MULTIPOLYGON}
#' }
#' The object is in geographical coordinates using the WGS84 datum.
#' 
#' @seealso 
#' See the rnaturalearth package: https://cran.r-project.org/package=rnaturalearth
#' 
#' @source \url{https://www.naturalearthdata.com/}
#' @source \url{https://data.worldbank.org/}
#' @docType data
#' @keywords datasets sf
#' @examples 
#' if (requireNamespace("sf", quietly = TRUE)) {
#'   library(sf)
#'   data(world)
#'   # or
#'   world <- st_read(system.file("shapes/world.gpkg", package="spData"))
#' 
#'   plot(world)
#' }
"world"
back to top