A few problems in R-0.50-a3 (which were also in R-0.49):
1)
y <- c(10,11,12,13,14,NA,NA)
n <- length(y)
missed <- (1:n)[is.na(y)]
notmissed <- (1:n)[!is.na(y)]
blocks <- cut(missed,breaks=c(0,notmissed,n+1))
a <- function(v) {
q <- range(v)
c(q[1]-1,q[2]+1)
}
brackets <- tapply(missed,blocks,a)
This codes gives the following in S:
Error: names attribute must be same length as the vector
I also had similar problems when using "lm" with data containing NA's
but could not find back a precise example...
2)
b <- list(2)
names(b) <- "lty"
a <- function(...) {
par(c(...,b))
par()
}
a()
The following is obtained in S: