Lab 2G
Directions: Follow along with the slides, completing
the questions in blue on your
computer, and answering the questions in red in your
journal.
Space, Click, Right Arrow or swipe left to move to
the next slide.
colors
.stress
.How do people’s personality colors and/or sports participation affect their stress levels?
colors
and stress
data?names
of the variables in each dataset.
height
in meters and
height
in inches, for instance (without converting one to
the other).R
won’t know which observation to match
to.colors
data
onto the stress
data.user.id
in the colors
data is unique.
colors
data.merge
function to join our
datasets together using the variables that appear in both sets.colors
data onto the stress
data.Assign
this merge
d
dataset the name stress_colors
.
View
your merged data and make sure
nothing appears to be blatantly wrong with it.merge
function?save
our
stress_colors
data for later use.stress
data and facet or group the plots
based on variables from the colors
data.stress_colors
data?