powered by
Order the indices of the rows of ds for imputation.
ds
order_rows(ds, order_option, M = is.na(ds))
A data frame
This option defines the ordering of the indices. Possible choices are "lowest_md_first", "highest_md_first", "increasing_index", "decreasing_index".
Missing data indicator matrix
The ordered row indices of ds as a vector.
# NOT RUN { ds <- data.frame(X = c(NA, NA, 3, 4), Y = c(1, NA, NA, 4)) order_rows(ds, "lowest_md_first") # }
Run the code above in your browser using DataLab