Allow students to show off their R skills and communication ability while investigating data that is meaningful to them!


1 Department of Statistics, NC State University
jbpost2.github.io
Creating meaningful projects in a data science course can be a time consuming task! With the given example project instructions students:
R
& RStudio
RMarkdown
to easily create an HTML document with code & output embeddeddplyr
(or Base R) for common data manipulation tasks ggplot2
(or Base R) for summarizing the dataR
functionsGithub
(optional) - for easy creation of a web site to share their workAPI - think of as a protocol for passing information between computers
https://api.polygon.io/v2/aggs/ticker/
AAPL/range/1/day/
2023-01-09/2023-01-09?apiKey=*
httr::GET()
for contacting the API via the URLcontent
element using rawToChar()
jsonlite::fromJSON()
to turn results into lists!:
httr::GET(URL)$content %>% rawToChar() %>% jsonlite::fromJSON()
Create a vignette (long form description of how a problem was solved) that provides a narrative for using custom functions to contact an API, parse, and return well-structured data. They then use those functions to obtain data from the API and do some exploratory data analysis.
github
and use GitHub pages to render a web pageMaterial below available at go.ncsu.edu/uscots2023 (or use the QR code)
Allow students to show off their R skills and communication ability while investigating data that is meaningful to them!