vignettes/200_useful_code.Rmd
200_useful_code.Rmd
\[~\]
\[~\]
\[\underline{STILL \space UNDER \space CONSTRUCTION}\]
\[~\]
\[~\]
not_all_NA
FALSE
if there are ONLY NA values in the vector.stndrd
stndrd <- function(vars, data) {
for (i in 1:length(vars)) {
data[, vars[i]] <- (data[, vars[i]] - mean(data[, vars[i]], na.rm = TRUE)) / sd(data[, vars[i]], na.rm = TRUE)
}
return(data)
}
\[~\]
Temple University, jmg5214@gmail.com↩︎
Temple University, sebastiano.debona@gmail.com↩︎
Temple University, mrhelmus@temple.edu↩︎
Temple University, jebehm@temple.edu↩︎