View source: R/order_indices.R
order_cols | R Documentation |
Order the indices of the columns of ds
for imputation.
order_cols(ds, order_option, M = is.na(ds))
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 |
The ordered column indices of ds
as a vector.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.