Displaying 1 result from an estimated 1 matches for "iipiv".
Did you mean:
ipiv
2007 Oct 26
1
Use of all/any
...a slip and write all(X) > 0 rather
than all(X > 0): thanks to Bill Dunlap for bringing that to my attention.
However, it has been useful in detecting quite a few other things:
- indices which had been made double where integer was intended. One
example from predict.lm was
iipiv[ii == 0] <- 0
which was intended to be
iipiv[ii == 0L] <- 0L
- uses of lapply where sapply was intended. Examples are of the form
all(lapply(z, is.numeric))
which is applying all() to a list. One might worry that
sapply(z, is.numeric)
will return a list if length...