Description Usage Arguments Details See Also Examples
Change certain values to NAs, ie make explicit 'NAs' back to 'NA'
1 | na_implicit(x, values)
|
x |
object |
values |
values to be recognized as NA |
'na_implicit' replaces 'values' by 'NA'. It is meant to be nearly inverse operation to 'na_explicit' (and 'na_replace'). It can be used on both atomic and recursive objects.
'na_implicit' is a S3 methods that can be used to defince additional methods.
- 'na_explicit' - 'na_replace'
1 2 3 4 5 6 7 8 | na_implicit( c(1,2,3,4), 3 )
na_implicit( c("A", "NA", "B", "C") )
na_implicit( c("A", "(Missing)", "B", "C") )
df <- data.frame( char=c('A', 'NA', 'C', "(Missing)"), num=1:4 )
na_implicit(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.