Exercise

Mean centering

Centering features takes the mean of each feature and subtracts it from each row value within the original variable. This allows for values that are at the mean to be 0 and any deviation from that as units away from the mean.

Instructions

100 XP
  • Using the Pokemon dataset poke_df, use mutate() to create a new mean centered column attack_mc from attack.