Description Usage Arguments Value Examples
This method uses 'gather' on an 'rset' object to stack all of the non-ID or split columns in the data and is useful for stacking model evaluation statistics. The resulting data frame has a column based on the column names of 'data' and another for the values.
1 2 3 |
data |
An 'rset' object. |
key, value, ... |
Not specified in this method and will be ignored. Note that this means that selectors are ignored if they are passed to the function. |
na.rm |
If 'TRUE', will remove rows from output where the value column in 'NA'. |
convert |
If 'TRUE' will automatically run 'type.convert()' on the key column. This is useful if the column names are actually numeric, integer, or logical. |
factor_key |
If FALSE, the default, the key values will be stored as a character vector. If 'TRUE', will be stored as a factor, which preserves the original ordering of the columns. |
A data frame with the ID columns, a column called 'model' (with the previous column names), and a column called 'statistic' (with the values).
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.