Description Usage Arguments Details Examples
View source: R/imputed-class.R
Additional functions for working with "imputed" objects
1 2 3 4 5 6 7 | as_imputed(x)
is_imputed(x)
na_restore(x)
na_positions(x)
|
x |
object. |
restore_na
unclasses the object from the "imputed" class
and fills missing values in their original positions.
na_positions
returns (initial) positions of the missing
values in the "imputed" object.
1 2 3 4 5 6 | x <- c(NA, 1, 2, NA, 4, NA, NA, 7, NA)
x
x <- na_prev(x)
x
na_positions(x)
na_restore(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.