Description Usage Arguments Details
View source: R/DataConversionFunctions.R
Make piecewise function for a list of values.
The names of the values are used as function's result.
If the names are NULL they are automatically assigned to be ordinals starting from 1.
Similar behavior is provided by the base function findInterval
.
1 | MakePiecewiseFunction(points, tags = NULL)
|
points |
A list of named values; if the values are not named automatic naming is used. |
tags |
The values to be returned for the ranges defined by points. |
length(points) == length(tags) - 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.