Displaying 1 result from an estimated 1 matches for "reallylongnamex0".
Did you mean:
reallylongnamex1
2012 Nov 06
1
options()$width ignored by print.formula
...la(), so at a lower level
than summary.gam(). Is there a way around this that I'm missing?
library(mgcv)
# start with example from ?gam
set.seed(2) ## simulate some data...
dat <- gamSim(1,n=400,dist="normal",scale=2)
colnames(dat)[1:5] <- c("reallylongnamey", "reallylongnamex0",
"reallylongnamex1", "reallylongnamex2", "reallylongnamex3")
b <- gam(reallylongnamey~s(reallylongnamex0)+s(reallylongnamex1)+s(reallylongnamex2)+s(reallylongnamex3),data=dat)
options(width=20)
b$formula # not wrapped to 20 characters
options(width=150)
b$fo...