Message-ID: <4A0D70BC.1040903@idi.ntnu.no>
Date: 2009-05-15T13:40:12Z
From: Wacek Kusnierczyk
Subject: displaying results
In-Reply-To: <4A0D6EDB.2040503@stats.uwo.ca>
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",
> mean(age)))
>
or maybe
cat(sprintf("The mean age of patients within the sample is %.1f.\n",
round(mean(age), 1)))
> Play with the %.1f format for more decimal places, etc.
... and be aware of excel bugs.
vQ