collect | R Documentation |
Collects common powers of a term in an expression
collect(x, a)
x , a |
A |
if (has_sympy()){
def_sym(x, y, z)
expr = x*y + x - 3 + 2*x**2 - z*x**2 + x**3
collect(expr, x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.