[R] a symbolic derivative question, please

Erin Hodgess erinm.hodgess at gmail.com
Fri Jan 9 18:31:56 CET 2015


Hello!

I have the following:

zzz <- expression(y[3]*r1 + r2)
deriv(zzz,c("r1","r2"))
Error in deriv.default(zzz,c("r1","r2")) :
   Function '`[`' is not in the derivatives table

What am I missing, please?  Since y is not one of the variables that is
being "acted upon", why is the [] an issue, please?

Thank you for any help!

Sincerely,
Erin


-- 
Erin Hodgess
Associate Professor
Department of Mathematical and Statistics
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com

	[[alternative HTML version deleted]]



More information about the R-help mailing list