[R] Extracting formulae from expression() / deriv()
Henrique Dallazuanna
wwwhsd at gmail.com
Tue Apr 6 15:40:40 CEST 2010
Try fixing the constants
s <- 2
c <- 3
a <- 2
P <- 1
attributes(eval(df1p))$gradient[,'P']
On Tue, Apr 6, 2010 at 10:30 AM, nickymcp <nickymcpherson at gmail.com> wrote:
>
>> f1
> ~s - c - a * P
> --
> View this message in context: http://n4.nabble.com/Extracting-formulae-from-expression-deriv-tp1752738p1752816.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
More information about the R-help
mailing list