search for: rmnames

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

Did you mean: renames
2012 May 02
1
Hmisc's latex: na.blank and grouping not working as expected
....blank=TRUE not replace the NA's in the following LaTeX table? x <- matrix(1:72, ncol=4, nrow=8) colnames(x) <- c("gr1.sgr1", "gr1.sgr2", "gr2.sgr1", "gr2.sgr2") rn <- apply(expand.grid(beta=c(0.25, 0.75), n=c(100, 500), d=c(10, 100))[, 3:1], 2, rmNames) x <- cbind(rn, x) # append columns containing the row labels x[2,5] <- NA stopifnot(is.na(x[2,5])) require(Hmisc) latex(x, file="", na.blank=TRUE, rowlabel=c("d", "n", "beta"), booktabs=TRUE) In the end, I would like to have t...