Skip to content

Commit

Permalink
fix: #84 order update brought in
Browse files Browse the repository at this point in the history
Merge remote-tracking branch 'origin/devel' into 84_xportr_deep_dive_vignette
  • Loading branch information
bms63 committed Jun 11, 2023
1 parent bea320e commit 6fffb8f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vignettes/deepdive.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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()`:
Expand Down

0 comments on commit 6fffb8f

Please sign in to comment.