prepAidData: Unzip and process Data

Description Usage Arguments Value Warning Examples

View source: R/unzipAidData.R

Description

Description

Usage

1
prepAidData(filepath = "rawdata/WITS_trade.zip", dataset = "WITS")

Arguments

filepath

A character string of either a folder or zipfile (including suffix) including the data.

dataset

The Dataset chosen for download. Options currently include "AidDataCore","China", "worldbank", .

Value

A data frame with the output data (further cleaning to be added.)

Warning

Do not operate heavy machinery within 8 hours of using this function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
df <- 
downloadRawAidData(dataset = "China") %>% 
prepAidData(filepath = .,
           dataset = "China")
head(df)

df <- 
 prepAidData(filepath = "AidDataChina.zip",
             dataset = "China")
head(df)

## End(Not run)

schliebs/aidR documentation built on Feb. 17, 2020, 10:26 a.m.