order_cols: Order column indices

View source: R/order_indices.R

order_colsR Documentation

Order column indices

Description

Order the indices of the columns of ds for imputation.

Usage

order_cols(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 column indices of ds as a vector.

Examples

ds <- data.frame(X = c(NA, NA, NA, 4), Y = rep(2, 4), Z = c(1, NA, NA, 4))
order_cols(ds, "highest_md_first")

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