library(tidyverse)
- 3
- Get an overview of the available variables
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.1 ✔ readr 2.1.4
✔ forcats 1.0.0 ✔ stringr 1.5.0
✔ ggplot2 3.4.1 ✔ tibble 3.2.1
✔ lubridate 1.9.2 ✔ tidyr 1.3.0
✔ purrr 1.0.1
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
<- read_csv("https://raw.githubusercontent.com/dspiegel29/ArtofStatistics/master/01-1-2-3-child-heart-survival-times/01-1-child-heart-survival-x.csv") child_heart
Rows: 13 Columns: 6
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (1): Hospital
dbl (5): Operations, Survivors, Deaths, ThirtyDaySurvival, PercentageDying
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
3head(child_heart)
# A tibble: 6 × 6
Hospital Operations Survivors Deaths ThirtyDaySurvival PercentageDying
<chr> <dbl> <dbl> <dbl> <dbl> <dbl>
1 London - Harley… 418 413 5 98.8 1.2
2 Leicester 607 593 14 97.7 2.3
3 Newcastle 668 653 15 97.8 2.2
4 Glasgow 760 733 27 96.3 3.7
5 Southampton 829 815 14 98.3 1.7
6 Bristol 835 821 14 98.3 1.7