[R] help on stepfunction

2011-02-08 Thread Mauro Ferreira
Dear members, I would like a help for extracting the values from a step function (stepfun). From help(stepfun) we have the following example: Y0-c(1.,2.,4.,3.) y0-c(1.,2.,3.,4.) sfun-stepfun(1:3,y0,f=0) plot(sfun) Now, suppose instead I was given the object (*sfun*, say) from which I wanted to

Re: [R] help on stepfunction

2011-02-08 Thread David Winsemius
On Feb 8, 2011, at 2:35 PM, Mauro Ferreira wrote: Dear members, I would like a help for extracting the values from a step function (stepfun). From help(stepfun) we have the following example: Y0-c(1.,2.,4.,3.) y0-c(1.,2.,3.,4.) sfun-stepfun(1:3,y0,f=0) plot(sfun) Now, suppose instead I