Skip to content

Commit

Permalink
update argument in Rmd files.
Browse files Browse the repository at this point in the history
  • Loading branch information
elong0527 committed Nov 15, 2023
1 parent 4f9dd23 commit d286800
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vignettes/metalite-table1.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ df <- metalite::assign_label(
metalite::get_label(df)
```

The `type` argument can modify the term at the first row,
The `record_name` argument can modify the term at the first row,
for example, "Number of Participants".

```{r}
metalite_table1(~ AGE + SEX | ARM,
data = df,
id = "USUBJID",
type = "Participants"
record_name = "Participants"
)
```

Expand Down Expand Up @@ -170,14 +170,14 @@ required javascript library. A full Rmarkdown example is as below.
`r import_example("for-loop.txt")`

```{r, results="asis", echo = FALSE}
type <- c("Subjects", "Records")
record_name <- c("Subjects", "Records")
for (i in 1:2) {
cat("### Table ", i, "\n")
tbl <- metalite_table1(~ AGE + SEX | ARM,
data = df,
id = "USUBJID",
type = type[i]
record_name = record_name[i]
)
metalite_table1_to_html(tbl)
Expand Down

0 comments on commit d286800

Please sign in to comment.