| printf {R.utils} | R Documentation | 
C-style formatted output
Description
C-style formatted output.
Usage
## Default S3 method:
printf(fmt, ..., sep="", file="")
Arguments
fmt | 
 A   | 
... | 
 Additional arguments   | 
sep | 
|
file | 
 A   | 
Value
Returns nothing.
Author(s)
Henrik Bengtsson
See Also
For C-style formatting of character strings, see sprintf().
Examples
  cat("Hello world\n")
  printf("Hello world\n")
  x <- 1.23
  cat(sprintf("x=%.2f\n", x))
  printf("x=%.2f\n", x)
  y <- 4.56
  cat(sprintf(c("x=%.2f\n", "y=%.2f\n"), c(x,y)), sep="")
  printf(c("x=%.2f\n", "y=%.2f\n"), c(x,y))
[Package R.utils version 2.12.3 Index]