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

From: Gorjanc Gregor <Gregor.Gorjanc_at_bfro.uni-lj.si>
Date: Sat, 09 Aug 2008 17:50:00 +0200

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat 09 Aug 2008 - 15:53:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 09 Aug 2008 - 18:36:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive