order_rows: Order row indices

View source: R/order_indices.R

order_rowsR 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")

imputeGeneric documentation built on March 18, 2022, 6:35 p.m.