Description Usage Arguments Details Note
View source: R/dataTransform.R
Convert a dataset without a dependent variable
1 | gatherData.pred(grade, conn, year, na.omit = TRUE, ...)
|
grade |
a numeric representing the grade level to extract data for |
conn |
a connection object suitable for extracting data |
year |
a character representing the school year to predict for in YYYY-YYYY format |
na.omit |
logical, should rows with an NA be omitted, default is TRUE |
First the function extracts data from buildTrainingPool, then it builds a model matrix suitable for passing to a transformation and then prediction step. The key difference between this and the original gatherData is that there are no valide dependent variable observations for data we want to make predictions on. This function is modified to account for that.
na.omit must be true for now as no imputation routines have been integrated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.