search for: descriptifvar

Displaying 1 result from an estimated 1 matches for "descriptifvar".

2007 Jun 06
2
names not inherited in functions
...data.frame called as "tablo" the step " nom.chiffr[1] <- names(vari) " is useless as names from the original data.frame aren't kept in the function environement. Hoping I use appropriate R-vocabulary, I thank you for your help David descriptif <- function (tablo) { descriptifvar <- function (vari) { table(vari) length(vari[!is.na(vari)]) chiffr <- cbind(table(vari),100*table(vari)/(length(vari[!is.na(vari)]))) nom.chiffr <- rep(NA, dim(table(vari))) if (is.null(names(vari))) nom.chiffr[1] <- paste(i,"") else nom.chiffr[1] <- names(vari)...