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 correct? > params<-params[-which(params=="x")] checks which params are > multiplied by x? > np<-length(params) > > for(i in 1:6){ > esp<-get(sprintf("m%d",i-1)) what does get do? sprinf > formats strings? so what is it doinf here? > assign(sprintf("m%d",i),D(esp,"x")) what doeas assign so what > in sprintf doing and what does D do? > } > > really really confused? > -- View this message in context: http://r.789695.n4.nabble.com/Confusing-piece-of-R-code-tp3656660p3656824.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@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.