Re: [R] String manipulation and formatting

From: Christos Hatzis <christos_at_nuverabio.com>
Date: Tue 18 Jul 2006 - 00:21:09 EST


See ?formatC

You might need to write a simple wrapper function to implement the interface that you want.

-Christos

-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Bashir Saghir (Aztek Global)
Sent: Monday, July 17, 2006 10:07 AM
To: 'r-help@R-project.org'
Subject: [R] String manipulation and formatting

I'm trying to write a simple function that does the following:

[command] xify(5.2)
[output] XXX.XX

[command] xify(3)
[output] XXX

Any simple solutions (without using python/perl/unix script/...)?

Thanks,
Saghir



Legal Notice: This electronic mail and its attachments are i...{{dropped}}

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 18 00:27:52 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 18 Jul 2006 - 02:19:40 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.