[R] printf and friends in R?
Marc Schwartz
MSchwartz at medanalytics.com
Tue Jul 15 15:46:57 CEST 2003
On Tue, 2003-07-15 at 08:27, Barry Rowlingson wrote:
> (Ted Harding) wrote:
> > On 15-Jul-03 Barry Rowlingson wrote:
> >
> >>help.search("printf") reveals the sprintf function (amongst others).
> >
> > Thanks! (For some reason this drew a blank when I tried it before ... ).
>
> perhaps because help.search does approximate matching and found
> everything with 'print' in as well? I get about 12 screens of matches to
> that, but because I knew sprintf was in there _somewhere_ I found it.
>
> You can turn off approximate matching with:
>
> help.search("printf",agrep=F)
>
> which gives the one true match.
>
> Baz
Yet another option, which I forget about myself sometimes, is apropos().
For example:
> apropos("printf")
[1] "sprintf"
See ?apropos for more info.
HTH,
Marc Schwartz
More information about the R-help
mailing list