Student to Teacher Ratios
This example loads a student-to-teacher ratio dataset from a CSV file and displays summary statistics about the data, including its size in kilobytes, row count, and column count. The visualization uses the D3.js library (v5) to fetch and parse the CSV via `d3.csv`, then formats the results using `d3.csvFormat`. A large `<pre>` element shows the computed metrics in text form. The dataset, sourced from Tidy Tuesday, contains country, year, educational level, and ratio fields, though the current code only reports dataset dimensions rather than rendering charts or graphs.
AI-generated descriptionThis Student to Teacher Ratio dataset originates from R for Data Science's Tidy Tuesday weekly event for May 7, 2019. It describes student to teacher ratios by country, year, and educational level.
Questions for consideration:
- How does educational level correlate to ratio?
- Which countries have the largest disparity of ratios across different educational levels?
- Which countries have improved their ratios the most over time?
Country and educational level are categorical. Ratio is quantitative.