Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sprintf_named

sprintf, with named references


Description

This converts named references in a format string (marked by curly braces), and passes through to sprintf.

Usage

sprintf_named(fmt, ...)

Arguments

fmt

a character vector of format strings, each of up to 8192 bytes.

...

values to be interpolated, optionally with names.

Value

a character vector.

Author(s)

Neal Fultz

References

See Also

Examples

sprintf_named("%{HIA}s!!! %{RYLAH}s", RYLAH="Rock You Like a Hurricane", HIA="Here I Am")

stackoverflow

Stack Overflow's Greatest Hits

v0.7.0
CC BY-SA 4.0
Authors
Neal Fultz <nfultz@gmail.com> and the StackOverflow.com community
Initial release
2020-01-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.