Re: [R] merge warning is.na(out$h)

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue 16 Aug 2005 - 17:06:11 EST

That error/warning is not from merge() (it does not contain that code, nor do the standard R packages). options(warn=2) and traceback() will show you where it is coming from.

Note that you have an error during printing the warning, which suggests there is more wrong than you have seen.

Please provide a reproducible example, or at least str(data1) and str(data2). (Your final comment suggests it is data1 that is unusual.)

On Mon, 15 Aug 2005, Fulton, Brent wrote:

> Does anyone know how to interpret this merge warning and whether it's
> critical to fix? The merge seemed to work fine, but I am concerned.
>
> data3<-merge(data1, data2, by="ID", all=TRUE)
>
> Warning messages: 1: is.na() applied to non-(list or vector) in:
> is.na(out$h) Error in cat(list(...), file, sep, fill, labels, append) :
> argument 2 not yet handled by cat
>
> When I remove all=TRUE or just include all.y=TRUE, I don't get the
> warning; however, I get the warning when I include all.x=TRUE.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue Aug 16 17:13:12 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:22:09 EST