README.md

Project Weekend Special

Build Status

Purpose: Work with the South Africa team to organize, structure, analyze, and visualize the weekly data coming in from partners.

image

WeekendSpecial R Package

This package is used to import, transform, and combine weekly partner data collected in Google Sheets and output a tidy csv file for analysis.

Process and how to run the R function

First time setup

`-- Weekly Program Data |-- WeeklyReports | |-- ANOVA Weekly Programme monitoring.xlsx | |-- BRHC Weekly Programme monitoring.xlsx | |-- FPD Weekly Programme monitoring.xlsx | `-- etc |-- CombinedDataset | `-- ZAF-Weekly-Programmme-Monitoring.csv |-- SupportingMaterial | |-- ZAF_FY18_site_targets.csv | `-- SBU_ZAF_sites_2018-05-10_SBU.csv `-- Tableau `-- Programme Monitoring Report.twbx

``` ## INITIAL SETUP

#install supporting R packages install.packages("tidyverse") install.packages("readxl") install.packages("devtools") install.packages("fs")

#install WeekendSpecial package for ZAF program monitoring data extraction/combination devtools::install_github("USAID-ICPI/WeekendSpecial")

```

Weekly Updating

## REFRESH REPORTS STORED LOCALLY (optional)

  #download weekly reports from Google Drive in one zipped folder (select all, right click and select download)
  #change the file paths below to note where the zipped file is located and then where the weekly reports are stored
    WeekendSpecial::wpm_filerefresh(filepath_zipped = "C:/Users/.../drive-download-20180510T140330Z-001.zip",
                                    folderpath_reports= "C:/Users/.../Weekly Program Data/WeeklyReports")

``` ## WEEKLY UPDATE

#check for updates devtools::install_github("USAID-ICPI/WeekendSpecial")

#create combined, tidy dataset (output to csv) WeekendSpecial::wpm_combine(folderpath_reports = "C:/Users/.../Weekly Program Data/WeeklyReports", folderpath_sitecoords = "C:/Users/.../Weekly Program Data/SupportingMaterial", folderpath_targets = "C:/Users/.../Weekly Program Data/SupportingMaterial", folderpath_output = "C:/Users/.../Weekly Program Data/CombinedDataset")

```



USAID-ICPI/WeekendSpecial documentation built on May 22, 2019, 11:50 p.m.