Displaying 1 result from an estimated 1 matches for "df1p".
Did you mean:
df1
2010 Apr 06
2
Extracting formulae from expression() / deriv()
I am attempting to extract the derivative/ gradient from this expression
df1p <- deriv(f1, "P")
> df1p
expression({
.value <- s - c - a * P
.grad <- array(0, c(length(.value), 1L), list(NULL, c("P")))
.grad[, "P"] <- -a
attr(.value, "gradient") <- .grad
.value
})
So in this case I want to extract...