[.caracas_symbol | R Documentation |
Extract or replace parts of an object
## S3 method for class 'caracas_symbol'
x[i, j, ..., drop = TRUE]
x |
A |
i |
row indices specifying elements to extract or replace |
j |
column indices specifying elements to extract or replace |
... |
Not used |
drop |
Simplify dimensions of resulting object |
if (has_sympy()) {
A <- matrix(c("a", 0, 0, 0, "a", "a", "a", 0, 0), 3, 3)
B <- as_sym(A)
B[1:2, ]
B[, 2]
B[2, , drop = FALSE]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.