strsubst: Named substitution in strings

Description Usage Arguments Details Value References

Description

Simple template mechanism inspired by PEP-0292. Use lists or named character vectors (vectors not tested) as a mapping for substitution.

Usage

1
strsubst(template, map, verbose = getOption("verbose"))

Arguments

template

character with $(VARS)

map

object with [ functionality e.g. a vector. Should return values that can be coerced to character

verbose

print debugging messages when TRUE, default is getOption("verbose")

Details

Substitutions are marked by $(NAME).

Value

character

References

Python-PEP-292 Stackoverflow


datamart documentation built on May 2, 2019, 9:40 a.m.