Learn R Programming

cards (version 0.3.0)

tidy_ard_order: Standard Order of ARD

Description

ARD functions for relocating columns and rows to the standard order.

  • tidy_ard_column_order() relocates columns of the ARD to the standard order.

  • tidy_ard_row_order() orders rows of ARD according to variables, groups, and strata, while retaining the order of the input ARD.

Usage

tidy_ard_column_order(x)

tidy_ard_row_order(x)

Value

an ARD data frame of class 'card'

Arguments

x

(data.frame)
an ARD data frame of class 'card'

Examples

Run this code
# order columns
ard <-
  dplyr::bind_rows(
    ard_continuous(mtcars, variables = "mpg"),
    ard_continuous(mtcars, variables = "mpg", by = "cyl")
  )

tidy_ard_column_order(ard) |>
  tidy_ard_row_order()

Run the code above in your browser using DataLab