[Rd] nchar( NA )
sarah.goslee at gmail.com
Fri Jun 18 22:58:43 CEST 2010
Did you read the help for nchar?
For ‘nchar’, an integer vector giving the sizes of each element,
currently always ‘2’ for missing values (for ‘NA’).
It may be unexpected behavior, but it's *well-documented* unexpected behavior.
On Fri, Jun 18, 2010 at 4:52 PM, Romain Francois
<romain at r-enthusiasts.com> wrote:
> Is this expected ?
>> nchar( c( "", NA ) )
>  0 2
> Should not the second one be NA ?
More information about the R-devel