Learn R Programming

⚠️There's a newer version (0.20.4) of this package.Take me there.

mosaicData

mosaicData provides a number of data sets associated with Proejct MOSAiC.

Installation

You can install the released version of mosaicData from CRAN with:

install.packages("mosaicData")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("ProjectMOSAIC/mosaicData")

Example

This is a basic example which shows you how to solve a common problem:

library(mosaicData)
suppressPackageStartupMessages(library(ggformula))
head(Weather)
#> # A tibble: 6 x 25
#>   city  date        year month   day high_temp avg_temp low_temp high_dewpt
#>   <chr> <date>     <dbl> <int> <dbl>     <dbl>    <dbl>    <dbl>      <dbl>
#> 1 Auck… 2016-01-01  2016     1     1        68       65       62         64
#> 2 Auck… 2016-01-02  2016     1     2        68       66       64         64
#> 3 Auck… 2016-01-03  2016     1     3        77       72       66         70
#> 4 Auck… 2016-01-04  2016     1     4        73       66       60         66
#> 5 Auck… 2016-01-05  2016     1     5        69       62       55         55
#> 6 Auck… 2016-01-06  2016     1     6        69       63       57         54
#> # … with 16 more variables: avg_dewpt <dbl>, low_dewpt <dbl>,
#> #   high_humidity <dbl>, avg_humidity <dbl>, low_humidity <dbl>,
#> #   high_hg <dbl>, avg_hg <dbl>, low_hg <dbl>, high_vis <dbl>,
#> #   avg_vis <dbl>, low_vis <dbl>, high_wind <dbl>, avg_wind <dbl>,
#> #   low_wind <dbl>, precip <chr>, events <chr>
gf_linerange(high_temp + low_temp ~ date | city ~ ., color = ~avg_temp, data = Weather) %>%
  gf_refine(scale_color_viridis_c(option = "D", end = 0.95, begin = 0.1))

Copy Link

Version

Install

install.packages('mosaicData')

Monthly Downloads

5,926

Version

0.20.2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Randall Pruim

Last Published

January 16th, 2021

Functions in mosaicData (0.20.2)

CoolingWater

CoolingWater
Dimes

Weight of dimes
CPS85

Data from the 1985 Current Population Survey (CPS85)
Births78

US Births in 1978
Birthdays

US Births in 1969 - 1988
Alcohol

Alcohol Consumption per Capita
Births

US Births
Births2015

US Births in 2015
Cards

Standard Deck of Cards
Countries

Countries
HeatX

Data from a heat exchanger laboratory
GoosePermits

Goose Permit Study
HELPfull

Health Evaluation and Linkage to Primary Care
Utilities2

Utility bills
KidsFeet

Foot measurements in children
Weather

Weather
Utilities

Utility bills
TenMileRace

Cherry Blossom Race
SwimRecords

100 m Swimming World Records
Whickham

Data from the Whickham survey
SnowGR

Snowfall data for Grand Rapids, MI
Gestation

Data from the Child Health and Development Studies
Galton

Galton's dataset of parent and child heights
RailTrail

Volume of Users of a Rail Trail
Mites

Mites and Wilt Disease
Marriage

Marriage records
Riders

Volume of Users of a Massachusetts Rail Trail
HELPrct

Health Evaluation and Linkage to Primary Care
HELPmiss

Health Evaluation and Linkage to Primary Care
SaratogaHouses

Houses in Saratoga County (2006)
SAT

State by State SAT data