stringterpolate: String Interpolation

Description Usage Arguments Value

View source: R/stringterpolate.R

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

1
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.


nyoungb2/HTSSIP documentation built on April 10, 2018, 9:10 a.m.