search for: t1colpct

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

Did you mean: colpct
2015 Jan 16
1
S3 generic method dispatch on promises
...ame()) t1 <- table(rvin, cvin, dnn = c(rvlab, cvlab), exclude = exclude) rownames(t1)[is.na(rownames(t1))] <- "NA" ## symbol to letters colnames(t1)[is.na(colnames(t1))] <- "NA" if (rounded) t1 <- round(t1, -1) t2 <- addmargins(t1, c(1,2)) t1colpct <- round(100*prop.table(t1, 2), 1) t1rowpct <- round(100*prop.table(t1, 1), 1) t1colpct <- apply(t1colpct, c(1,2), function(x) gsub("NaN", "", x)) t1rowpct <- apply(t1rowpct, c(1,2), function(x) gsub("NaN", "", x)) res <- list(&...