[R] displaying results
Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Fri May 15 15:40:12 CEST 2009
Duncan Murdoch wrote:
> On 5/15/2009 8:33 AM, deanj2k wrote:
>> Hi everyone, can anyone tell me how i can change how i display
>> mean(age), i
>> want it to say The mean age of patients within the sample is mean(age)
> I think you want something like this:
> cat(sprintf("The mean age of patients within the sample is %.1f.\n",
cat(sprintf("The mean age of patients within the sample is %.1f.\n",
> Play with the %.1f format for more decimal places, etc.
... and be aware of excel bugs.
More information about the R-help