These data sets describe band members of the Beatles and Rolling Stones. They are toy data sets that can be displayed in their entirety on a slide (e.g. to demonstrate a join).
band_members band_instruments band_instruments2
Each is a tibble with two variables and three observations
band_instruments
and band_instruments2
contain the same data but use
different column names for the first column of the data set.
band_instruments
uses name
, which matches the name of the key column of
band_members
; band_instruments2
uses artist
, which does not.
band_members#> # A tibble: 3 x 2 #> name band #> <chr> <chr> #> 1 Mick Stones #> 2 John Beatles #> 3 Paul Beatlesband_instruments#> # A tibble: 3 x 2 #> name plays #> <chr> <chr> #> 1 John guitar #> 2 Paul bass #> 3 Keith guitarband_instruments2#> # A tibble: 3 x 2 #> artist plays #> <chr> <chr> #> 1 John guitar #> 2 Paul bass #> 3 Keith guitar