[R] merge warning is.na(out$h)
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Aug 16 09:06:11 CEST 2005
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 at 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
More information about the R-help
mailing list