Learn R Programming

descriptr (version 0.5.1)

ds_rindex: Index Values

Description

Returns index of values.

Usage

ds_rindex(data, values)

Arguments

data

a numeric vector

values

a numeric vector containing the values whose index is returned

Value

Index of the values in data. In case, data does not contain index, NULL is returned.

Details

Any NA values are stripped from data and values before computation takes place.

Examples

Run this code
# NOT RUN {
ds_rindex(mtcars$mpg, 21)
ds_rindex(mtcars$mpg, 22)
# }

Run the code above in your browser using DataLab