Skip to content

Commit

Permalink
docs: add more information about the data_extract_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Feb 16, 2024
1 parent 11ea647 commit 81fb811
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vignettes/data-extract-merge.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ join_keys <- join_keys(
#### Step 2/5 - Creating data extract specifications

In the following code block, we create a `data_extract_spec` object for each dataset, as illustrated above.
It is created by the `data_extract_spec()` function which takes in four arguments:

1. `dataname` is the name of the dataset to be extracted.
2. `select` helps specify the columns from which we wish to allow the app user to select. It can be generated using the function `select_spec()`. In this case, we restrict the selection to "AGE", "SEX", and "BMRKR1", with "AGE" being the default selection.
3. `filter` helps specify the values of a variable we wish to filter during extraction. It can be generated using the function `filter_spec()`. In this case, we filter the variable PARAMCD by allowing users to choose from "CRSD", "EFS", "OS", and "PFS", with "OS" being the default filter.
4. `reshape` is a boolean which helps to specify if the data needs to be rehaped from long to wide format.

```{r}
adsl_extract <- data_extract_spec(
Expand Down

0 comments on commit 81fb811

Please sign in to comment.