[FLR-list] R bug !?

Ernesto JARDIM ernesto.jardim at jrc.ec.europa.eu
Fri Jan 13 14:19:12 CET 2012


I'm afraid of mentioning the word ...

Can you please check the code below on your installations ? It looks a 
bug but I'm sure Ripley wrote some where this is a new feature of apply ...

data(iris)
iris[1,1]<- Inf

# this one should give 1 on the first column ..
apply(apply(iris,2,is.infinite),2,sum)

sum(is.infinite(iris$Sepal.Length))

EJ

-- 
Ernesto Jardim<ernesto.jardim at jrc.ec.europa.eu>
Scientific Officer
FISHREG – Scientific Support to Fisheries
IPSC Maritime Affairs Unit
EC Joint Research Center
TP 051, Via Enrico Fermi 2749
I-21027 Ispra (VA), Italy
Office : +39 0332 785311
Fax: +39 0332 789658
http://fishreg.jrc.ec.europa.eu/





More information about the flr-list mailing list