MyNixOS website logo
Description

Teaching Data for Statistics and Data Science.

Provides data sets for teaching statistics and data science courses. It includes a sample of data from John Edmund Kerrich's famous coinflip experiment. These are data that I used for teaching SOC 4015 / SOC 5050 at Saint Louis University (SLU). The package also contains an R Markdown template with the required formatting for assignments in my courses SOC 4015, SOC 4650, SOC 5050, and SOC 5650 at SLU.

testDriveR

GitHubWorkflow CRAN_status_badge cranchecks Downloads DOI

The goal of testDriveR is to provide data sets for teaching statistics and data science courses. This package includes a sample of data from John Edmund Kerrich’s famous coinflip experiment. These are data that I used for teaching SOC 4015 / SOC 5050 at Saint Louis University.

The package also includes an R Markdown template for completing assignments. This was the required format for authoring R Markdown documents in my courses SOC 4015 / SOC 5050 and SOC 4650 / SOC 5650 at Saint Louis University. A quick overview is included below.

Installation

The easiest way to get testDriveR is to install it from CRAN:

install.packages("testDriveR")

You can also install the development version of testDriveR from Github with remotes:

remotes::install_github("chris-prener/testDriveR")

Current Data

The package currently contains five data tables:

  • auto17 - A data set containing model year 2017 vehicles for sale in the United States
  • childMortality - A data set containing childhood mortality time series data by country from UNICEF
  • gss14 - A data set containing a selection of variables related to work and education from the 2014 General Social Survey
  • gss14_simple - A simple version of gss14 without factors created and without missing data explicitly declared
  • kerrich - A data set containing 2000 trials of coin flips by John Edmund Kerrich

Usage

Once loaded, the data contained in testDriveR can be loaded into data frames in your global environment and then explored. For example, to load the auto17 data:

library("testDriveR")
autoData <- auto17
str(autoData)

Data Creation

If you are interested in the original data/code used to create the included data, you can find them at:

R Markdown Template

The package also includes a template that my students use for getting started with R based assignments. It can be accessed from within RStudio by going to File > New File > R Markdown... and then selecting SLU Sociology Assignments under Template:

The template includes YAML for generating both .nb.html and .md output, a pre-formatted date that updates each time the document is knit, and initial code blocks for loading dependencies and data.

Contributor Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Metadata

Version

0.5.2

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows