Lab 4H
Directions: Follow along with the slides and answer the questions in red font in your journal.
data
function to load the futbol
data set.
ht_inches
and wt_lbs
and color each dot based on the league
they play for.mutate
function to add the values from kclusters
to the futbol
data. Call the variable clusters
.league
information?timeuse
data (remember to run timeuse_format
so each row represents the mean time each student in spent participating in the various activities).homework
and videogames
variables.
subset
function.kclusters
with k=2
for homework
and videogames
.
videogames
and doing homework
.