tstLst <- list(a=NULL, b=1) tstLst[sapply(tstLst, function(x)!is.null(x))] spencer graves i have a list containing 10000 objects, but a vast majority of them are NULL. I need to generate a shorter li
Have you tried "family=quasi"? See "?glm", "?family", "?anova.glm", and "args(anova.glm)". In particular, you want 'test="Chisq"' or even 'test="F"'. spencer graves Everybody knows how can I correct
1. Produce vectors of character strings with the names of the *.xls files and of the target data.frames you want to create. For example, the following will "station60", "station61", ..., "station800"
What software are you using? I have S-Plus Professional Editon 6.2.1, and I am unaware of any ordinary differential equation solver in S-Plus. spencer graves Dear All: I am trying to make use of argu
Have you considered the following: set.seed(1) df. <- data.frame(x=1:11, y=1:11+rnorm(11)) fit <- lm(y-x~x, data=df.) anova(fit) summary(fit) hope this helps. spencer graves Hello everyone, I've ran
ERIC: Does S-Plus have Kalman filtering software that would work with 6 short irregular time series? Xao Ping: What do your 36 numbers look like? For example, do you get crudely a straight line with
Can you get the SAS numbers to more precision? Let P4 be your matrix of orthogonal polynomials up to order 4: P4 <- poly(c(1,2,3,5,6),4) Then crossprod(P4) = t(P4)%*%P4 should be a 4x4 identity matri
Does anyone have experience running S-Plus 2000 under Windows XP? Our company is planning to upgrade operating systems to Windows XP, and we'd like to know if this change might break some of our lega
Dear Prof. Ripley: Thanks very much. This sounds like a definitive answer! Spencer Graves The only problem we found was that the Watcom compilers we used to compile for S-PLUS 2000 did not run under
Dear Prof. Ripley: As I reread your answer, I find I'm not completely certain about one point: Is it correct to say that previously compiled code ran for you, but when you needed to compile something
Dear Prof. Ripley: Again, thanks very much! Spencer Graves Dear Prof. Ripley: As I reread your answer, I find I'm not completely certain about one point: Is it correct to say that previously compiled
Dear Prof. Ripley: Please excuse: I keep peeling the onion and finding another question: Is it correct to infer that S-Plus 2000 itself never gave you any trouble, and the only problems you had was w
cv <- c("Now is the time", "for all good") [1] "N" "f" Is this what you want? spencer graves Dear S-users: I have a character variable with 100 records and now I want to read the first letter from ea
Have you considered using "lines"? hope this helps. spencer graves S users, I am using the abline function to plot several regression lines on a plot. (e.g. abline(a.model)) It’s quick and easy, but