prepareDF | R Documentation |
Scales numeric data and dummy codes factors, omits outliers and missing values.
prepareDF(data, output = NULL, scale = T, out.omit = T, na.omit = T)
data |
data.frame containing data. |
output |
index or name of criterion in data. |
out.omit |
logical value, specifying whether outliers (scale(data)>3) shoud be set to NA. |
na.omit |
logical value, specifying whether NA shoud be omitted. |
data=data.frame(y=rnorm(100),x1=rnorm(100),x2=rnorm(100)); prepareDF(data,"y1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.