search for: badindices

Displaying 1 result from an estimated 1 matches for "badindices".

2006 Jun 03
1
warnings messages from R when returning nothing
...p and R 2.20 ) and I am getting a warning from one of my statements because the behavior of R is different from Splus. below, tempdata is a matrix of numbers and I have the following command which basically runs through the columns and returns the minimum index of the column where an NA occurs. badindices<-sapply(tempdata,function(x)min(bdind<-seq(along=x)[is.na(x)]))) The problems seems to be that, if the column doesn't have any NAs, then I get the following warning : "no finite arguments to min : returning inf". So, consequently, I get a lot of warnings anfd -infs. I dont hav...