I recently ran into the following: > x <- c(1,2,4,3) > lm(x ~ 1:length(x)) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ
but > lm(x ~ c(1:length(x))) Call: lm(formula = x ~ c(1:length(x))) Coefficients: (Intercept) c(1:length(x)) 0.5 0.8 and > identical(1:4, c(1:4)) [1] TRUE Should I report this as a bug? Göran -- Göran Broström tel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED] ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help