band_members: Band membership

Description Usage Format Details Examples

Description

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).

Usage

1
2
3
4
5

Format

Each is a tibble with two variables and three observations

Details

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.

Examples

1
2
3

Example output

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

# A tibble: 3 x 2
   name    band
  <chr>   <chr>
1  Mick  Stones
2  John Beatles
3  Paul Beatles
# A tibble: 3 x 2
   name  plays
  <chr>  <chr>
1  John guitar
2  Paul   bass
3 Keith guitar
# A tibble: 3 x 2
  artist  plays
   <chr>  <chr>
1   John guitar
2   Paul   bass
3  Keith guitar

dplyr documentation built on June 19, 2021, 1:07 a.m.