The goal of cwdata is to …
You can install the released version of cwdata from CRAN with:
install.packages("cwdata")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("ffancheng/cwdata")
This is a basic example which shows you how to solve a common problem:
library(cwdata)
## basic example code
head(key_crop_yields)
#> entity code year crop tonnes_per_hectare
#> 1 Afghanistan AFG 1961 wheat 1.0220
#> 2 Afghanistan AFG 1961 rice 1.5190
#> 3 Afghanistan AFG 1961 maize 1.4000
#> 4 Afghanistan AFG 1961 soybeans NA
#> 5 Afghanistan AFG 1961 potatoes 8.6667
#> 6 Afghanistan AFG 1961 beans NA