thanks sarah
--
View this message in context:
http://r.789695.n4.nabble.com/Confusing-piece-of-R-code-tp3656660p3656898.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/lis
The neat thing about R is that it's interpreted, so you can look for yourself.
On Sat, Jul 9, 2011 at 3:46 PM, Bazman76 wrote:
> m0<-epxression((4*theta1*theta2-theta3^2)/(2*x*theta3^2)-0.5*theta1*x)
>
> params<-all.vars(m0) this reads all the params
> from m0 so thet
Have you looked at the manual for any of these?
?get
?sprintf
?assign
#and so on...
?
Bazman76 wrote:
>
> m0<-epxression((4*theta1*theta2-theta3^2)/(2*x*theta3^2)-0.5*theta1*x)
>
> params<-all.vars(m0) this reads all the
> params from m0 so theta1,2 and 3 corre
m0<-epxression((4*theta1*theta2-theta3^2)/(2*x*theta3^2)-0.5*theta1*x)
params<-all.vars(m0) this reads all the params
from m0 so theta1,2 and 3 correct?
params<-params[-which(params=="x")] checks which params are multiplied
by x?
np<-length(params)
4 matches
Mail list logo