Skip to content

UBC-MDS/datateachr

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
R
 
 
 
 
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

datateachr

R build status Codecov test coverage

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.

Installation

You can install the development version from GitHub with:

install.packages("devtools")
devtools::install_github("UBC-MDS/datateachr")

Vignette

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")

Data

This package currently contains the following data sets:

Example

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()
#> # A tibble: 6 x 20
#>   tree_id civic_number std_street genus_name species_name cultivar_name
#>     <dbl>        <dbl> <chr>      <chr>      <chr>        <chr>        
#> 1  149285         1906 W 14TH AV  ACER       SPECIES      <NA>         
#> 2   51001          849 W 60TH AV  ACER       SACCHARINUM  <NA>         
#> 3   84751         8250 HUDSON ST  ACER       PLATANOIDES  <NA>         
#> 4   54498         6611 ADERA ST   ACER       PLATANOIDES  SCHWEDLERI   
#> 5   78588         1333 W GEORGIA… ACER       RUBRUM       <NA>         
#> 6  220644         1438 RICHARDS … ACER       PLATANOIDES  EMERALD QUEEN
#> # … with 14 more variables: common_name <chr>, assigned <chr>,
#> #   root_barrier <chr>, plant_area <chr>, on_street_block <dbl>,
#> #   on_street <chr>, neighbourhood_name <chr>, street_side_name <chr>,
#> #   height_range_id <dbl>, diameter <dbl>, curb <chr>, date_planted <date>,
#> #   longitude <dbl>, latitude <dbl>

Citation

Run this command to get information about how to cite this package:

citation("datateachr")
#> 
#> To cite package 'datateachr' in publications use:
#> 
#>   Hayley Boyce and Jordan Bourak (2020). datateachr: Data collected to
#>   use for teaching at the University of British Columbia. R package
#>   version 0.2.1. https://github.com/UBC-MDS/datateachr
#> 
#> A BibTeX entry for LaTeX users is
#> 
#>   @Manual{,
#>     title = {datateachr: Data collected to use for teaching at the University of British
#> Columbia},
#>     author = {Hayley Boyce and Jordan Bourak},
#>     year = {2020},
#>     note = {R package version 0.2.1},
#>     url = {https://github.com/UBC-MDS/datateachr},
#>   }

About

A package containing data for teaching UBC courses

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages