sort_by_key {metatools} | R Documentation |
Sort Rows by Key Sequence
Description
This function sorts the dataset according to the key sequence found in the metacore object.
Usage
sort_by_key(data, metacore, dataset_name = deprecated())
Arguments
Value
dataset with ordered columns
Examples
library(metacore)
library(haven)
library(magrittr)
load(metacore_example("pilot_ADaM.rda"))
spec <- metacore %>% select_dataset("ADSL")
data <- read_xpt(metatools_example("adsl.xpt"))
sort_by_key(data, spec)
[Package metatools version 0.2.0 Index]