Displaying 1 result from an estimated 1 matches for "mitjana".
2015 Jul 14
4
Conservar el nombre de la variable entre varias funciones: ejemplos de resultados
...N_total = length(get(X)),
N_valids = sum(!is.na(get(X))),
N_desconeguts = sum(is.na(get(X)))
)
ESTA_2<-data.frame(Variable = X,
N = sum(!is.na(get(X))),
Mitjana = if (mean(get(X) > 10)) {round(mean(get(X), na.rm = TRUE), 2)} else {round(mean(get(X), na.rm = TRUE), 3)},
Err_tipic = if (sd (get(X) > 10)) {round(sd (get(X), na.rm = TRUE), 2)} else {round(sd (get(X), na.rm = TRUE), 3)},
Min = min(g...