Re: [R] Extracting equation from R code

2011-10-18 Thread Rolf Turner
I checked your equations with some made-up values: crossover <- 50 fullin <- 120 fullout <- 20 x <- 62 and got 0.6261906 --- which was the value returned by the function in question. With x <- 41 I got 0.3094857 --- again the same as the value returned by the function. So you seem to have der

[R] Extracting equation from R code

2011-10-18 Thread tpet
Dear R-helpers, I am trying to extract two equations from an R code, but I am not being able to do it. The code is this: function (x, fullin, fullout, crossover, infz = 0.953, outfz = 0.047, details = FALSE) { if (fullin < fullout || crossover < fullout || fullin < crossover) s