tstr: Returns a string of index values corresponding to each vector...

View source: R/tstr.R

tstrR Documentation

Returns a string of index values corresponding to each vector element that is TRUE

Description

This works the same as which except each index value is collapsed into a single string. Continuous indices in a range take the form start:stop and non continuous indices are separated by a comma and space. If all values are FALSE, NA is returned. NA values in x are treated the same as a FALSE.

Usage

tstr(x, n = 0)

Arguments

x

Boolean vector. NA values are treated the same as a FALSE.

n

Integer value to add to the index. Default is 0. Use n=1 to equal the row number in excel assuming the header row is the first row.

Value

string

See Also

valid_values valid_values_check


DEQrmichie/odeqcdr documentation built on Feb. 15, 2025, 10:01 a.m.