README.md

herzog is an R package designed to automatically scrape Herzog assessment results from the assessment_summary page for your organization.

Get results

get_herzog_results takes the assessment summary url and returns a data frame where each row is an assessment.

devtools::install_github("context-dependent/herzog")

## Skipping install of 'herzog' from a github remote, the SHA1 (76aabc9e) has not changed since last install.
##   Use `force = TRUE` to force installation

library(tidyverse)

## Registered S3 methods overwritten by 'ggplot2':
##   method         from 
##   [.quosures     rlang
##   c.quosures     rlang
##   print.quosures rlang

## Registered S3 method overwritten by 'rvest':
##   method            from
##   read_xml.response xml2

## -- Attaching packages ------------------------------------------------------------------------------------ tidyverse 1.2.1 --

## v ggplot2 3.1.1       v purrr   0.3.2  
## v tibble  2.1.1       v dplyr   0.8.0.1
## v tidyr   0.8.3       v stringr 1.4.0  
## v readr   1.3.1       v forcats 0.4.0

## -- Conflicts --------------------------------------------------------------------------------------- tidyverse_conflicts() --
## x dplyr::filter() masks stats::filter()
## x dplyr::lag()    masks stats::lag()

library(herzog)


url <- "https://bpade.essentialskillsgroup.com/custom_reports/assessment_summary.php"

herzog_results <- get_herzog_results(url)

knitr::kable(head(herzog_results), format = "markdown")
esg_user_id case_id skill test duration_mins level score start_date 97041 HO-827092 Document Use Baseline 1 1 0 2018-05-11 07:26:51 97041 HO-827092 Numeracy Baseline 1 1 0 2018-05-11 07:30:03 97154 HO-313554 Document Use Baseline 16 2 263 2018-05-14 09:15:56 97154 HO-313554 Document Use Post 20 2 249 2018-06-18 07:20:36 97154 HO-313554 Numeracy Baseline 50 1 191 2018-05-14 09:38:23 97154 HO-313554 Numeracy Post 40 1 216 2018-06-18 07:50:20

The returned table has 7 meaningful columns:



context-dependent/herzog documentation built on Nov. 10, 2019, 7:23 p.m.