Skip to content

nchar( NA )

5 messages · Sarah Goslee, Henrique Dallazuanna, Romain Francois +1 more

#
Hi Romain,

Did you read the help for nchar?

Value:

     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.

Sarah

On Fri, Jun 18, 2010 at 4:52 PM, Romain Francois
<romain at r-enthusiasts.com> wrote:

  
    
#
Le 18/06/10 22:58, Sarah Goslee a ?crit :
Oops. My scan of the help page was too quick. I did not see it.

Sorry for the noise.

  
    
#
Oh, that must make it ok then.

For a more sensible take:
[1]  0 NA


Hadley