Description Usage Arguments Details Value Author(s) Examples

Returns an index of positions. Intended for evaluating a step function at selected times. The function counts how many elements of a vector, e.g. the jump times of the step function, are smaller or equal to the elements in a second vector, e.g. the times where the step function should be evaluated.

1 |

`jump.times` |
Numeric vector: e.g. the unique jump times of a step function. |

`eval.times` |
Numeric vector: e.g. the times where the step function should be evaluated |

`comp` |
If "greater" count the number of jump times that are greater (greater or equal when strict==FALSE) than the eval times |

`strict` |
If TRUE make the comparison of jump times and eval times strict |

If all `jump.times`

are greater than a particular `eval.time`

the
sindex returns `0`

. This must be considered when sindex is used for
subsetting, see the Examples below.

Index of the same length as `eval.times`

containing the numbers
of the `jump.times`

that are smaller than or equal to
`eval.times`

.

Thomas A. Gerds [email protected]

1 2 3 4 5 6 7 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.