knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) library(datateachr)
Pronounced "Data Teacher"
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:
install.packages("devtools") devtools::install_github("UBC-MDS/datateachr")
You may also access this information through our vignette. First use this command for installation:
install.packages("devtools") devtools::install_github("UBC-MDS/datateachr", build_vignettes = TRUE)
And to read the vignette use:
library(datateachr) browseVignettes("datateachr")
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.