MakePiecewiseFunction: Piecewise function constructor.

Description Usage Arguments Details

View source: R/DataConversionFunctions.R

Description

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.

Usage

1

Arguments

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.

Details

length(points) == length(tags) - 1


antononcube/ERTMon-R documentation built on Oct. 14, 2021, 2:27 p.m.