knitr::opts_chunk$set(collapse = T, comment = "#>") NOT_CRAN <- identical(tolower(Sys.getenv("NOT_CRAN")), "true") knitr::opts_chunk$set(purl = NOT_CRAN)
library(rscorecard)
## public schools within 50 miles of midtown Nashville, TN df <- sc_init() |> sc_filter(control == 1) |> sc_select(unitid, instnm, stabbr) |> sc_year(2013) |> sc_zip(37203, 50) |> sc_get()
df
The College Scorecard will only return 100 results at a time. When there are more than 100 results, the package will make multiple pulls and append all results before returning.
## median earnings for students who first enrolled in a public ## college in the New England or Mid-Atlantic regions: 10 years later df <- sc_init() |> sc_filter(control == 1, region == 1:2, ccbasic == 1:24) |> sc_select(unitid, instnm, md_earn_wne_p10) |> sc_year(2009) |> sc_get()
df
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.