knitr::opts_chunk$set(collapse = T)
library(nyschooldata)

Overall, data.nysed.gov does a lot of things right, and I very much appreciate the general spirit of data accessibility that is happening there.

There are some issues that come up when using the released assessment tables. This vignette documents what I've bumped into, how I've problem solved, and what might be done.

Assessment

Here's the top of the Assessment database:

ex <- get_raw_assess_db(2016)
head(ex) %>% print.AsIs()

And here are ten random rows:

rand_slices <- runif(10, min = 1, max = ex %>% nrow()) %>% round(0)

dirty_random <- ex %>% 
  dplyr::slice(rand_slices) 

dirty_random %>% print.AsIs()

summary(dirty_random)

A couple of things I notice:

Odds and Ends:

clean_assess_db solves these problems. Here's the output of that function: (fetch_assess_db is a wrapper around that function):

ex2 <- fetch_assess_db(2016)

And here are ten random rows:

clean_random <- ex2 %>% 
  dplyr::slice(rand_slices) 

clean_random %>% print.AsIs()


almartin82/nyschooldata documentation built on May 10, 2019, 9:55 a.m.