From Gregor.Gorjanc at bfro.uni-lj.si  Sat Aug  9 17:50:00 2008
From: Gregor.Gorjanc at bfro.uni-lj.si (Gorjanc Gregor)
Date: Sat, 9 Aug 2008 17:50:00 +0200
Subject: [Rd] (PR#12318) Bug in format.default(): na.encode does not
 have any effect for
In-Reply-To: <alpine.LFD.1.10.0808091511240.22054@gannet.stats.ox.ac.uk>
References: <20080807101419.01C8F282EFC1@mail.pubhealth.ku.dk>,
	<alpine.LFD.1.10.0808091511240.22054@gannet.stats.ox.ac.uk>
Message-ID: <F189E18BBAA8B6479F618B9044CF4E9C686C13385C@owa.bfro.uni-lj.si>

Hi to all!

Prof Brian Ripley wrote:
> Have you read the help page?  It says
>
>    na.encode: logical: should 'NA' strings be encoded?
>
> No mention of encoding NA numerical values that I can see, and it was
> never intended to apply to other than *strings*.

I did read the help page, however it seems that I have confused the meaning of
'NA' string and 'NA' value. It might be obvious that the first form is meant
for strings (charcaters) only and the other for numeric like vectors, but not to me.

IMHO it would be better that na.encode argument would also have an
effect for numeric like vectors. Nearly any function in R returns NA values and I
expected the same for format, at least when na.encode=FALSE.

Regards, Gregor



[Rd] (PR#12318) Bug in format.default(): na.encode does not have any effect for
Gorjanc Gregor