[R] String manipulation and formatting

Christos Hatzis christos at nuverabio.com
Mon Jul 17 16:21:09 CEST 2006

See ?formatC

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


-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Bashir Saghir (Aztek
Sent: Monday, July 17, 2006 10:07 AM
To: 'r-help at 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/...)?


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

R-help at stat.math.ethz.ch mailing list
PLEASE do read the posting guide!

More information about the R-help mailing list