| Line 102... |
Line 102... |
| 102 |
zero-row arguments. (If that leaves none, it returns the first
|
102 |
zero-row arguments. (If that leaves none, it returns the first
|
| 103 |
argument with columns otherwise a zero-column zero-row data frame.)
|
103 |
argument with columns otherwise a zero-column zero-row data frame.)
|
| 104 |
It then takes the classes of the columns from the
|
104 |
It then takes the classes of the columns from the
|
| 105 |
first data frame, and matches columns by name (rather than by
|
105 |
first data frame, and matches columns by name (rather than by
|
| 106 |
position). Factors have their levels expanded as necessary (in the
|
106 |
position). Factors have their levels expanded as necessary (in the
|
| 107 |
order of the levels of the levelsets of the factors encountered) and
|
107 |
order of the levels of the level sets of the factors encountered) and
|
| 108 |
the result is an ordered factor if and only if all the components were
|
108 |
the result is an ordered factor if and only if all the components were
|
| 109 |
ordered factors. (The last point differs from S-PLUS.) Old-style
|
109 |
ordered factors. (The last point differs from S-PLUS.) Old-style
|
| 110 |
categories (integer vectors with levels) are promoted to factors.
|
110 |
categories (integer vectors with levels) are promoted to factors.
|
| 111 |
|
111 |
|
| 112 |
Note that for result column \code{j}, \code{\link{factor}(., exclude = X(j))}
|
112 |
Note that for result column \code{j}, \code{\link{factor}(., exclude = X(j))}
|