print_matrix | R Documentation |
matrix
This function prints a (possibly abbreviated) matrix
.
print_matrix(
x,
rowdots = 4,
coldots = 4,
digits = 2,
label = NULL,
simplify = FALSE,
details = !simplify
)
x |
[ |
rowdots |
[ |
coldots |
[ |
digits |
[ |
label |
[ |
simplify |
[ |
details |
[ |
Invisibly returns x
.
This function is a modified version of ramify::pprint()
.
Other package helpers:
Dictionary
,
Storage
,
identical_structure()
,
input_check_response()
,
match_arg()
,
package_logo()
,
print_data.frame()
,
renv_development_packages()
,
system_information()
,
unexpected_error()
,
user_confirm()
print_matrix(x = 1, label = "single numeric")
print_matrix(x = LETTERS[1:26], label = "letters")
print_matrix(x = 1:3, coldots = 2)
print_matrix(x = matrix(rnorm(99), ncol = 1), label = "single column matrix")
print_matrix(x = matrix(1:100, nrow = 1), label = "single row matrix")
print_matrix(x = matrix(LETTERS[1:24], ncol = 6), label = "big matrix")
print_matrix(x = diag(5), coldots = 2, rowdots = 2, simplify = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.