pprint | R Documentation |
This function prints abbreviated matrices and vectors.
pprint(x, rowdots = 4, coldots = 4, digits = 4, name = NULL, desc = TRUE)
x |
A (numeric or character) matrix or a vector. |
rowdots |
The row number which is replaced by dots. |
coldots |
The column number which is replaced by dots. |
digits |
If |
name |
Either |
desc |
Set to |
Invisibly returns x
.
This function is a modified version of the pprint()
function from the
ramify
R package.
RprobitB:::pprint(x = 1, name = "single integer") RprobitB:::pprint(x = LETTERS[1:26], name = "letters") RprobitB:::pprint(x = matrix(rnorm(100), ncol = 1), name = "single column matrix") RprobitB:::pprint(x = matrix(1:100, nrow = 1), name = "single row matrix") RprobitB:::pprint(x = matrix(LETTERS[1:24], ncol = 6), name = "big matrix")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.