order_rows {imputeGeneric} | R Documentation |
Order row indices
Description
Order the indices of the rows of ds
for imputation.
Usage
order_rows(ds, order_option, M = is.na(ds))
Arguments
ds |
A data frame |
order_option |
This option defines the ordering of the indices. Possible choices are "lowest_md_first", "highest_md_first", "increasing_index", "decreasing_index". |
M |
Missing data indicator matrix |
Value
The ordered row indices of ds
as a vector.
Examples
ds <- data.frame(X = c(NA, NA, 3, 4), Y = c(1, NA, NA, 4))
order_rows(ds, "lowest_md_first")
[Package imputeGeneric version 0.1.0 Index]