scaled <-scale(peer_data)
head(as_tibble(scaled))
## # A tibble: 6 x 45
## tuition_in_state tuition_out_sta… pct_native pct_black pct_hispanic pct_white
## <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 -0.398 -1.20 -0.280 2.85 -0.809 0.291
## 2 0.339 0.0767 -0.280 0.803 -0.651 1.26
## 3 -0.0461 0.0288 -0.280 -0.127 -0.809 1.26
## 4 0.114 -0.139 0.910 -0.685 0.459 -0.334
## 5 0.235 0.406 0.910 -0.499 0.855 -0.277
## 6 -0.793 -0.701 0.910 -0.499 -0.413 1.14
## # … with 39 more variables: pct_two_more <dbl>, pct_nonresident <dbl>,
## # pct_asian_pi <dbl>, pct_women <dbl>, stu_fac_ratio <dbl>,
## # pct_admitted <dbl>, yield <dbl>, price_instate_oncampus <dbl>,
## # enrollment_undg <dbl>, enrollment_grad <dbl>, degree_ba <dbl>,
## # degree_ma <dbl>, degree_phd_research <dbl>, degree_phd_prof <dbl>,
## # degree_phd_other <dbl>, six_year_grad <dbl>, pct_pell <dbl>,
## # revenue_core <dbl>, revenue_pct_tuition <dbl>, expense_core <dbl>,
## # expense_instructional <dbl>, expense_research <dbl>,
## # expense_student_service <dbl>, endowment <dbl>, sat_read25 <dbl>,
## # sat_read75 <dbl>, sat_math25 <dbl>, sat_math75 <dbl>, act_comp25 <dbl>,
## # act_comp75 <dbl>, fte1718 <dbl>, faculty_total <dbl>,
## # degree_phd_total <dbl>, degree_total <dbl>, cluster2 <dbl>, cluster5 <dbl>,
## # us_rank2020 <dbl>, aau_member <dbl>, aau_year <dbl>