Description Usage Arguments Value Author(s) Examples
Missing values are replaced with the string "BLANK", or any other string supplied as an input.
1 2  | ## S3 method for class 'factor'
CleanNaFromFactor(x, replacement="BLANK", ...) 
 | 
x | 
 A factor that may contain missing values.  | 
replacement | 
 Levels with missing values will be replaced with this string.  | 
... | 
 Unused arguments for other methods.  | 
Returns a factor that matches the input factor except that missing values are replaced.
Justin Hemann <support@causata.com>
1 2  | f <- as.factor(c("a","b","c",NA))
CleanNaFromFactor(f)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.