[R] abs() on data frames?!

Henrik Bengtsson hb at maths.lth.se
Tue Feb 26 21:33:51 CET 2002


I might be wrong, but didn't the following work before R v1.4.x?

R --vanilla
> df <- data.frame(-10:10)
> abs(df)
Error in abs(df) : non-numeric argument to function

I have tried this on both Rv1.4.1 on WinMe and Rv1.4.0 on Solaris 8. I
regexp searched bugs.r-project.org on "abs" but I found nothing about this.
I can't see why abs(df) shouldn't work when sqrt(df), log(df) etc works.

Thanks

Henrik Bengtsson

Dept. of Mathematical Statistics @ Centre for Mathematical Sciences
Lund Institute of Technology/Lund University, Sweden (+2h UTC)
Office: P316, +46 46 222 9611 (phone), +46 46 222 4623 (fax)
h b @ m a t h s . l t h . s e, http://www.maths.lth.se/bioinformatics/


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list