Skip to content

nchar() applied to an element with value NA #5

@komwomak

Description

@komwomak

The text at the start of section 7.1 and the example do not appear to agree on what nchar() does on encountering NA:

text <- c("one", "two", "three", NA, "five")
nchar(text)
[1] 3 3 5 NA 4

Thank you for making this material available!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions