README.md

cwdata

R build
status

The goal of cwdata is to …

Installation

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("petestylianos/cwdata")

Example

This is a basic example which shows you how to solve a common problem:

library(cwdata)
library(tibble)
key_crop_yields 
#> # A tibble: 143,825 x 5
#>    country     code   year crop     tonnes_per_hectare
#>    <chr>       <chr> <dbl> <chr>                 <dbl>
#>  1 Afghanistan AFG    1961 wheat                  1.02
#>  2 Afghanistan AFG    1961 rice                   1.52
#>  3 Afghanistan AFG    1961 maize                  1.4 
#>  4 Afghanistan AFG    1961 soybeans              NA   
#>  5 Afghanistan AFG    1961 potatoes               8.67
#>  6 Afghanistan AFG    1961 beans                 NA   
#>  7 Afghanistan AFG    1961 peas                  NA   
#>  8 Afghanistan AFG    1961 cassava               NA   
#>  9 Afghanistan AFG    1961 barley                 1.08
#> 10 Afghanistan AFG    1961 cocoa                 NA   
#> # … with 143,815 more rows
n_countries(key_crop_yields)
#> [1] 249


petestylianos/cwdata documentation built on Oct. 17, 2020, 1:49 a.m.