| stringterpolate {HTSSIP} | R Documentation |
String Interpolation
Description
String interpolation is a useful way of specifying a character string which
depends on values in a certain environment. It allows for string creation
which is easier to read and write when compared to using e.g.
paste or sprintf. The (template) string can
include expression placeholders of the form ${expression} or
$[format]{expression}, where expressions are valid R expressions that
can be evaluated in the given environment, and format is a format
specification valid for use with sprintf.
Usage
stringterpolate(string, env = parent.frame())
Arguments
string |
A template character string. |
env |
The environment in which to evaluate the expressions. |
Value
An interpolated character string.
[Package HTSSIP version 1.4.1 Index]