Displaying 1 result from an estimated 1 matches for "a__3".
Did you mean:
a_3
2006 Aug 15
0
Help with workaround for: Function '`[`' is not in thederivatives table
...", Subsc, "\\]", sep = "")
> repl <- "\\1__\\2"
> E <- expression(A[1] * exp(A[2]*X) + A[3])
> Es <- deparse(E[[1]])
> Es
[1] "A[1] * exp(A[2] * X) + A[3]"
> Ess <- gsub(patn, repl, Es)
> Ess
[1] "A__1 * exp(A__2 * X) + A__3"
> Ex <- parse(text = Ess)[[1]]
> Ex
A__1 * exp(A__2 * X) + A__3
OK, the calls to `[` have been replaced by variables with two
underscores in the middle. We hope this works - there is a strong
assumption here on just how complicated your indices are, for example.
We are assuming the...