Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

convert_attr2exp

convert_attr2exp converts symbolic attribute of derivative into expression object.


Description

convert_attr2exp converts symbolic attribute of derivative into expression object.

Usage

convert_attr2exp(obj)

Arguments

obj

Symbolic expression of gradient or hessian

Value

combine expression of derivatives

Examples

eq1 <- parse(text="2*(log(sin(x)/log(x)))+x^4*log(x)+cos(y+x)")
tt1 <- deriv(eq1, c("x", "y"), hessian=TRUE)
r1 <- convert_attr2exp(extract_attr_deriv(tt1, "grad"))
r2 <- convert_attr2exp(extract_attr_deriv(tt1, "hessian"))

nmm

Nonlinear Multivariate Models

v0.9
GPL (>= 2)
Authors
Simona Jokubauskaite [aut, cre], Reinhard Hoessinger [aut], Friedrich Leisch [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.