Skip to content
Prev 284588 / 398502 Next

decimal number format as quarter

TY Jim,

It do the trick.

I was trying to play without success with the format() options.
No simplest way so?

Arnaud Gaboury
?
A2CT2 Ltd.


-----Original Message-----
From: jim holtman [mailto:jholtman at gmail.com] 
Sent: mercredi 8 f?vrier 2012 15:36
To: Arnaud Gaboury
Cc: r-help at r-project.org
Subject: Re: [R] decimal number format as quarter

will this do it for you:
+                     , .25
+                     , ifelse(x.f == 4
+                         , .5
+                         , .75
+                         )
+                     )
[1] 2.25 2.50 2.75 3.25 3.50 3.75

        
On Wed, Feb 8, 2012 at 9:12 AM, Arnaud Gaboury <arnaud.gaboury at a2ct2.com> wrote: