knitr::opts_chunk$set(collapse = T, comment = "#>") library(datateachr)
The goal of datateachr
is to provide an easy way to access open source data for educational purposes. It contains several semi-tidied data sets obtained from multiple sources.
You can install the development version from GitHub with:
This package currently contains the following data sets:
apt_buildings
: Acquired courtesy of The City of Toronto's Open Data Portal. It currently has r nrow(apt_buildings)
rows and r ncol(apt_buildings)
columns.
building_permits
: Acquired courtesy of The City of Vancouver's Open Data Portal. It currently has r nrow(building_permits)
rows and r ncol(building_permits)
columns.
cancer_sample
: Acquired courtesy of UCI Machine Learning Repository. It currently has r nrow(cancer_sample)
rows and r ncol(cancer_sample)
columns.
flow_sample
: Acquired courtesy of The Government of Canada's Historical Hydrometric Database. It currently has r nrow(flow_sample)
rows and r ncol(flow_sample)
columns.
parking_meters
: Acquired courtesy of The City of Vancouver's Open Data Portal. It currently has r nrow(parking_meters)
rows and r ncol(parking_meters)
columns.
steam_games
: Acquired courtesy of Kaggle. It currently has r nrow(steam_games)
rows and r ncol(steam_games)
columns.
vancouver_trees
: Acquired courtesy of The City of Vancouver's Open Data Portal. It currently has r nrow(vancouver_trees)
rows and r ncol(vancouver_trees)
columns.
This is a basic example which shows you how to solve a common problem:
library(dplyr) library(datateachr) vancouver_trees %>% filter(genus_name == "ACER") %>% arrange(desc(diameter)) %>% head()
Run this command to get information about how to cite this package.
citation("datateachr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.