>>>>> "Thomas" == Thomas W Blackwell <[EMAIL PROTECTED]> writes:
> Michael - Because these columns are factors to begin with,
> using as.numeric() alone will have unexpected results. See
> the section "Warning:" in help("factor").
Ah, thanks for pointing that out. When I've used as.numeric on
factors, it is usually because I've explicitly made a numeric
variable a factor. I can see where something that I think aught
to be numeric would be interpreted as a factor, say due to an
error in formatting an input file. If I do something like this:
x <- some numeric array
f <- factor(x)
y <- as.numeric(x)
is there a possibility of y not equalling x? If x really is
numeric that is.
Regards, Mike
--
Michael A. Miller [EMAIL PROTECTED]
Imaging Sciences, Department of Radiology, IU School of Medicine
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help