Re: [R] model.frame: object is not a matrix [solved]

2013-04-05 Thread Ross Boylan
The problem was that my formula had 2 "~" in it. It also had a lot of duplicate terms, but by themselves they don't cause trouble. Ross On 4/4/2013 5:30 PM, Ross Boylan wrote: Over a decade ago there was a problem with model.frame when the variable names were long: https://stat.ethz.ch/piperma

Re: [R] model.frame: object is not a matrix

2013-04-04 Thread Richard M. Heiberger
When I have a matrix MMM with long column names and short row names, then I will normally display the transpose t(MMM). It will be much easier to read. I will also set the emacs window holding *R* to very wide (150 or so) and then I can see the whole width of the transposed matrix simultaneously.

[R] model.frame: object is not a matrix

2013-04-04 Thread Ross Boylan
Over a decade ago there was a problem with model.frame when the variable names were long: https://stat.ethz.ch/pipermail/r-help/2002-August/024492.html I have similar symptoms with R 2.15.3 on Windows 7: Browse[2]> x <- model.matrix(formula(myform), p$data) Error in model.frame.default(object,