S: Use C-style String Formatting Commands

Description Usage Arguments Value See Also Examples

Description

Convenience wrapper for sprintf that allows recycling of ... of length one.

Usage

1
S(x, ...)

Arguments

x

A single string containing "%s".

...

A vector of substitutions equal in length to the number of "%s" in x or of length one (if length one ... will be recycled).

Value

Returns a string with "%s" replaced.

See Also

sprintf

Examples

1
2
3
4
S("@after_", "the", "the")
# Recycle
S("@after_", "the")
S("@rm_between", "LEFT", "RIGHT")


Search within the qdapRegex package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.