install.packages("remotes")
library(remotes)
Mgrtibbles
mgrtibbles is a R package containing various datasets in tibbles. They were curated into a R package by Matthew Gemmell.
For full information please see the mgrtibbles github page
Install and load
Installation and loading instruction below:
You will need the remotes
package installed and loaded.
::install_github("m-gemmell/mgrtibbles")
remoteslibrary(mgrtibbles)
Accessing data
Once you have installed and loaded the package you can access one of the various datasets as a tibble like below:
::mammal_sleep_tbl mgrtibbles
# A tibble: 62 × 11
species body_wt brain_wt non_dreaming dreaming total_sleep life_span
<chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 Africanelephant 6.65e+3 5.71 NA NA 3.3 38.6
2 Africangiantpou… 1 e+0 0.0066 6.3 2 8.3 4.5
3 ArcticFox 3.38e+0 0.0445 NA NA 12.5 14
4 Arcticgroundsqu… 9.2 e-1 0.0057 NA NA 16.5 NA
5 Asianelephant 2.55e+3 4.60 2.1 1.8 3.9 69
6 Baboon 1.06e+1 0.180 9.1 0.7 9.8 27
7 Bigbrownbat 2.3 e-2 0.0003 15.8 3.9 19.7 19
8 Braziliantapir 1.6 e+2 0.169 5.2 1 6.2 30.4
9 Cat 3.3 e+0 0.0256 10.9 3.6 14.5 28
10 Chimpanzee 5.22e+1 0.44 8.3 1.4 9.7 50
# ℹ 52 more rows
# ℹ 4 more variables: gestation <dbl>, predation <fct>, exposure <fct>,
# danger <fct>
To see the format and variable description use ?
. For example:
::crab_age_pred_tbl ?mgrtibbles