[R] as.character() problem?
Simon Wood
snw at mcs.st-and.ac.uk
Mon Dec 4 16:56:44 CET 2000
The following is pasted from 1.1.0 under Windows NT (same thing happens
under linux). The problem is that part of the model formula is lost when
coerced to character. Is this supposed to happen?
>reg.form<- formula(y~ lat + lon + depth + sunel + btmtemp + btmsal +
sediment + sediment*sunel + lon*lat)
> reg.form
y ~ lat + lon + depth + sunel + btmtemp + btmsal + sediment +
sediment * sunel + lon * lat
> as.character(reg.form)
[1] "~"
[2] "y"
[3] "lat + lon + depth + sunel + btmtemp + btmsal + sediment + sediment *"
Thanks,
Simon
______________________________________________________________________
> Simon Wood snw at st-and.ac.uk http://www.ruwpa.st-and.ac.uk/simon.html
> The Mathematical Institute, North Haugh, St. Andrews, Fife KY16 9SS UK
> Direct telephone: (0)1334 463799 Indirect fax: (0)1334 463748
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list