| Line 121... |
Line 121... |
| 121 |
its value) and finally a \code{"formula"} attribute.
|
121 |
its value) and finally a \code{"formula"} attribute.
|
| 122 |
|
122 |
|
| 123 |
There is a \code{formula} method for data frames. When there's
|
123 |
There is a \code{formula} method for data frames. When there's
|
| 124 |
\code{"terms"} attribute with a formula, e.g., for a
|
124 |
\code{"terms"} attribute with a formula, e.g., for a
|
| 125 |
\code{\link{model.frame}()}, that formula is returned. If you'd like the
|
125 |
\code{\link{model.frame}()}, that formula is returned. If you'd like the
|
| 126 |
previous (\R \eqn{\le}{<=} 3.5.x) behavior, use the auxiliary
|
126 |
previous (\R \eqn{\le} 3.5.x) behavior, use the auxiliary
|
| 127 |
\code{DF2formula()} which does not consider a \code{"terms"} attribute.
|
127 |
\code{DF2formula()} which does not consider a \code{"terms"} attribute.
|
| 128 |
Otherwise, if
|
128 |
Otherwise, if
|
| 129 |
there is only
|
129 |
there is only
|
| 130 |
one column this forms the RHS with an empty LHS. For more columns,
|
130 |
one column this forms the RHS with an empty LHS. For more columns,
|
| 131 |
the first column is the LHS of the formula and the remaining columns
|
131 |
the first column is the LHS of the formula and the remaining columns
|