rel_value_of_pos_in_vector: Find relative value of a position in a vector

View source: R/rel_value_of_pos_in_vector.R

rel_value_of_pos_in_vectorR Documentation

Find relative value of a position in a vector

Description

Find relative value of a position in a vector

Usage

rel_value_of_pos_in_vector(vector = NULL, position = NULL)

Arguments

vector

a numeric vector

position

position of a vector

Value

a number indicating the relative value of the position in the vector

Examples

rel_value_of_pos_in_vector(vector = c(0, 100), position = 1.5)
rel_value_of_pos_in_vector(vector = 2:4, position = 2)
rel_value_of_pos_in_vector(vector = c(2, 4, 6), position = 2.5)

kim documentation built on Oct. 9, 2023, 5:08 p.m.