[R] how lm behaves

2012-06-07 Thread Peter Palenchar
I was wondering if somebody could explain why I get different results here: >treats[,2]<-as.factor(treats[,2]) >treats[,5]<-as.factor(treats[,5]) >treats[,4]<-as.factor(treats[,4]) #there are 'c' on more days than I have 'h2o2', where treats[,4] is the day. I only want 'c' that correspond to the

[R] converting to strings

2009-03-19 Thread Peter Palenchar
I have a list: x<-c("abcg", "bcah", "defi") I want the third and fourth thing in each item of the list ("bc", "ca", "ef"). Peter __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gu

[R] set intercept in glm to non-0

2009-03-16 Thread Peter Palenchar
I know how to make the intercept 0 in glm, but I actually want to force my intercept to be 1. Is there a way I can do this? Peter __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http