Skip to content

type.convert() does not treat "NA" as ordinary string as (PR#1568)

1 message · Brian Ripley

#
On Fri, 17 May 2002 oehl_list@gmx.de wrote:

            
Yes. Thanks for pointing it out.
Notice that is a real result, as the real convertor was hard-coded to
handle "NA" as a missing real.  It proved a little tricky to disentangle
it.
That was intentional.  It is intended to convert character input read from
a file, and R does still regards "NA" in a file as missing unless told
otherwise.  So it makes sense to have the same default for type.convert,
and also for backwards compatibility.

Brian