Dear R People:

I am working with a numeric vector and trying to use the "any"
function.  However, I'm getting some odd results, as shown below:

> xy
[1] 0.7305081 2.4224211
> str(xy)
 num [1:2] 0.73 2.42
> any(xy) > 1
[1] FALSE
Warning message:
In any(xy) : coercing argument of type 'double' to logical
>

What am I doing wrong please?

Thanks in advance,
Sincerely,
Erin



-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodg...@gmail.com

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to