keeping original and new variables in df
I am trying to mean-center multiple variables at the same time. I am using the code below, which is replacing the original variables with the mean-centered variables. I want to keep BOTH the original variables and mean-centered variables. Does anyone know how I could modify my code to do that? vars_to_mc <- c("interview_age_1_year", "pea_wiscv_tss_baseline", "cbcl_scr_dsm5_adhd_r_baseline",… Read More keeping original and new variables in df