is_correlation_matrix | R Documentation |
Assert correlation matrix
is_correlation_matrix(
x,
.xname = get_name_in_parent(x),
severity = getOption("assertive.severity", "stop")
)
assert_correlation_matrix(x, .xname = get_name_in_parent(x))
x |
correlation matrix |
.xname |
string |
severity |
'warning' or 'stop' |
TRUE or false
x <- matrix(c(1,0.7, 0.3, 1), nrow = 2)
rownames(x) <- c('gene1', 'gene2')
colnames(x) <- c('gene1', 'gene2')
is_correlation_matrix(x)
is_correlation_matrix({x[1,1] <- -2; x})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.