README.md

This is an R Dataset that contains information on the UNESCO World Heritage Sites (current as of the 2014 audit). There are 1006 sites included in the dataset with the following variables:

Installation

This data-only package can be installed from GitHub with the devtools package:

devtools::install_github('rich-iannone/UWHS')

Example Uses

It's a data frame called uwhs. Get the dimensions:

dim(uwhs)
#' [1] 1006   20

Find out how many sites are located or co-located in Germany.

c(just_de = nrow(subset(uwhs, grepl("^de$", country_iso_2))),
  shared_with_de = abs(nrow(subset(uwhs, grepl("^de$", country_iso_2))) - 
                       nrow(subset(uwhs, grepl("de", country_iso_2)))))
#'       just_de shared_with_de 
#'            34              5 

Now go forth and explore these opulent sites that fulfil one (or many!) cultural and/or natural criteri(on|a)...



rich-iannone/UWHS documentation built on May 27, 2019, 7:57 a.m.