From 6fffb8f04a11b88004fea83a6c19777c0acee807 Mon Sep 17 00:00:00 2001 From: bs832471 Date: Sun, 11 Jun 2023 19:06:30 +0000 Subject: [PATCH] fix: #84 order update brought in Merge remote-tracking branch 'origin/devel' into 84_xportr_deep_dive_vignette --- vignettes/deepdive.Rmd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vignettes/deepdive.Rmd b/vignettes/deepdive.Rmd index 4861091a..c6fd8df8 100644 --- a/vignettes/deepdive.Rmd +++ b/vignettes/deepdive.Rmd @@ -174,8 +174,7 @@ First, let's read in the specification file and call it `var_spec`. Note that w ```{r} var_spec <- var_spec %>% rename(type = "Data Type") %>% - set_names(tolower) %>% - mutate(order = as.numeric(order)) + set_names(tolower) ``` ```{r, echo = FALSE} @@ -317,7 +316,7 @@ adsl_label <- xportr_label(.df = adsl_lbl, metadata = var_spec_lbl, domain = "AD The order of the dataset can greatly increase readability of the dataset for downstream stakeholders. For example, having all the treatment related variables or analysis variables grouped together can help with inspection and understanding of the dataset. `xportr_order()` can take the order information from the metadata and apply it to your dataset. ```{r} -adsl_ord <- xportr_order(adsl, var_spec, "ADSL", verbose = "warn") +adsl_ord <- xportr_order(.df = adsl, metadata = var_spec, domain = "ADSL", verbose = "warn") ``` Readers are encouraged to inspect the dataset and metadata to see the past order and updated order after calling the function. Note the messaging from `xportr_order()`: