search for: t1rowpct

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

Did you mean: rowpct
2015 Jan 16
1
S3 generic method dispatch on promises
...b, 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("count" = t2, "colpct" = t1colpc...