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

Examples

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