[R] Extracting formulae from expression() / deriv()

nickymcp nickymcpherson at gmail.com
Tue Apr 6 16:00:22 CEST 2010


Thanks for your help - this works and I get
 
> s <- 2
> c <- 3
> a <- 2
> P <- 1
> attributes(eval(df1p))$gradient[,'P']
 P 
-2 

What I really wanted was an expression that I can use later - do you think
there's any way to do this?

-- 
View this message in context: http://n4.nabble.com/Extracting-formulae-from-expression-deriv-tp1752738p1752856.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list