Description Usage Arguments Details Value Author(s) See Also Examples
Missing values are replaced in a CausataData
object, and the process is recorded so that it can be reapplied
during scoring.
1 2 | ## S3 method for class 'CausataData'
CleanNaFromContinuous(x, variableName=NULL, method="median", ...)
|
x |
An object of class |
variableName |
If a name is supplied then the variable matching the name will have |
method |
See |
... |
Unused arguments for other methods. |
The default behavior is that missing numeric values are replaced with the median.
Returns a CausataData
object.
Justin Hemann <support@causata.com>
CleanNaFromContinuous
, CausataData
.
1 2 3 4 | # median of x__AP is 2
df <- data.frame(x__AP=c(NA, 1,1.5,2,3,11), y__AP=c(NA, 1,2,3,4,5))
causataData <- CausataData(df, rep(0, nrow(df)))
causataData <- CleanNaFromContinuous(causataData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.