as_imputed: Additional functions for working with "imputed" objects

Description Usage Arguments Details Examples

View source: R/imputed-class.R

Description

Additional functions for working with "imputed" objects

Usage

1
2
3
4
5
6
7

Arguments

x

object.

Details

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.

Examples

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)

twolodzko/misster documentation built on May 24, 2019, 2:54 p.m.