[R] printf and sprintf: Where are they??
Sundar Dorai-Raj
sundar.dorai-raj at pdf.com
Thu Mar 18 21:37:53 CET 2004
Ford Prefect wrote:
> Hi,
>
> Others on this list have happily commented that there
> exists printf and/or sprintf in R. I can't find it.
> help(sprintf) and help.search("sprintf") come up
> empty!
>
> Is it in some non-standard package?
>
> Thanks!
>
On what platform/R-version?
on R-1.8.1 for Windows I get:
help.search("sprintf")
sprintf(base) Use C-style String Formatting Commands
capture(gregmisc) Capture printed output of an R expression in a
string
So "sprintf" is in the base package.
-sundar
More information about the R-help
mailing list