find_x_section: Find the location of a new value in a table of values

View source: R/RcppExports.R

find_x_sectionR Documentation

Find the location of a new value in a table of values

Description

Find the location of a new value in a table of values

Usage

find_x_section(new_x, x)

Arguments

new_x

A double floating point number giving a new value of x for which you want to find the indices of the sections of a vector x that contain the new value.

x

A numeric vector for which you want to find the position that brackets the new value, new_x.

Value

An integer giving the zero-based index of the position in the x vector that gives the lower bracket of the section of the x-vector containing the new x value.


geanders/stormwindmodel documentation built on Sept. 27, 2022, 6:47 a.m.