Description Usage Arguments Value Author(s) See Also Examples
Missing values are replaced with the string "BLANK", or any other string supplied as an input.
1 2 | ## S3 method for class 'CausataData'
CleanNaFromFactor(x, variableName=NULL, replacement="BLANK", ...)
|
x |
An object from |
variableName |
If a name is supplied then the variable matching the name will have |
replacement |
Levels with missing values will be replaced with this string. |
... |
Unused arguments for other methods. |
Returns a CausataData
object with the missing value replacements recorded.
Justin Hemann <support@causata.com>
CleanNaFromFactor
, CausataData
.
1 2 3 | df <- data.frame(f1__AP=factor(c("a","b",NA)), f2__AP=factor(c("x","y",NA)))
causataData <- CausataData(df, rep(0,nrow(df)))
causataData <- CleanNaFromFactor(causataData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.