Skip to contents

Equivalent of .Range() in Insight Maker

Usage

substr_i(string, idxs)

Arguments

string

String to extract from

idxs

Integer or vector of integers indexing which characters to extract

Value

Substring

See also

Other custom: %REM%(), contains_IM(), expit(), filter_IM(), indexof(), length_IM(), logistic(), logit(), mod(), rbool(), rdist(), rem(), round_IM(), shuffle()

Examples

substr_i("InsightMaker", 3) # "s"
#> [1] "s"
substr_i("InsightMaker", c(1, 5, 10)) # "Igk"
#> [1] "Igk"