Last data update: 2014.03.03
|
R: Print formatted messages
Print formatted messages
Description
A replacement for cat that has built-in sprintf
formatting
Usage
scat(format, ..., use.newline = TRUE)
Arguments
format |
A format string passed to sprintf
|
use.newline |
Whether to append a new line at the
end
|
... |
Arguments to pass to sprintf for
dereferencing
|
Details
Like cat but you can use format strings.
Value
A formatted string printed to the console
Author(s)
Brian Lee Yung Rowe
Examples
apply(array(2:5),1, function(x) scat('This has happened %s times', x) )
Results
|