-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
In my book, I'm generating matrices for SST, SSH and SSE for an MLM using crossprod() from Y, fitted and residuals,
but I don't want the row/col names automatically generated by crossprod(). I had to do the following:
# Ugh! rownames/colnames if present are used by default. Need to make them null to avoid them.
rownames(SST) <- rownames(SSH) <- rownames(SSE) <- NULL
colnames(SST) <- colnames(SSH) <- colnames(SSE) <- NULL
Eqn(latexMatrix(SST), "=", latexMatrix(SSH), "+", latexMatrix(SSE))
The default for display.labels used by print.latexMatrix() is now TRUE by default, and I can't figure out how to change it, because I don't understand the syntax for assigning to an option which is a list of such nested labels.
> options("print.latexMatrix")
$print.latexMatrix
NULL
> options(print.latexMatrix[["display.labels"]] = FALSE)
Error: unexpected '=' in "options(print.latexMatrix[["display.labels"]] ="
> options(print.latexMatrix$display.labels = FALSE)
Error: unexpected '=' in "options(print.latexMatrix$display.labels ="
I understand that this developed as a result of adding more features.
But, at the least we should document (in @details for print.latexMatrix()) how to change the default.
Or, maybe something like how knitr::opts$set() works?
Metadata
Metadata
Assignees
Labels
No labels