View source: R/smoothSurvReg.R
piece  R Documentation 
Function to evaluate a left continuous piecewise constant function with a finite support.
piece(x, breaks, values)
x 
Vector of values where the piecewise constant function should be evaluated. 
breaks 
Vector of sorted breakpoints of the piecewise constant function. 
values 
Values of the piecewise constant function. It takes the value

The value of the piecewise constant function.
Arnošt Komárek arnost.komarek@mff.cuni.cz
my.breaks < c(2, 1.5, 4, 7) my.values < c(0.5, 0.9, 2) grid < seq(3, 8, by = 0.25) piece(grid, my.breaks, my.values)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.