[Rd] grep, gsub, sub have problems with NA values (PR#3078)

Thomas Lumley tlumley at u.washington.edu
Fri May 23 09:46:35 MEST 2003

On Thu, 22 May 2003 gregory_r_warnes at groton.pfizer.com wrote:

> In a string context, grep, gsub, sub are improperly treating NA (missing) as
> the string "NA", and returning unexpected results

as were chartr, abbreviate, substr, substring, strsplit. Fixed in r-devel,
for the case of NA in the `main' string. Haven't yet decided what to do
  grep(as.character(NA), x)


More information about the R-devel mailing list