Skip to content

Commit

Permalink
Fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed Dec 6, 2023
1 parent e95c862 commit 008768b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions vignettes/introduction.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ Note that we use factor variables so that the level order is
represented in the row or column order when we tabulate the
information of `df` below.


## Building a Table

The aim of this vignette is to build the following table step by step:
Expand All @@ -103,7 +102,8 @@ tbl
```

## Quick Start
The table above can be achieved via the `qtable` function. If you are new

The table above can be achieved via the `qtable()` function. If you are new
to tabulation with the `rtables` layout framework, you can use this
convenience wrapper to create many types of two-way frequency tables.

Expand Down Expand Up @@ -134,7 +134,7 @@ The user needs to define:

In the sections below we will look at translating each of these questions
to a set of features part of the `rtables` layout framework. Now let's take a
look building the example table with a layout.
look at building the example table with a layout.

## Layout Instructions

Expand All @@ -150,7 +150,6 @@ tbl <- build_table(lyt, df)
tbl
```


In the code above we first described the table and assigned that
description to a variable `lyt`. We then built the table using the
actual data with `build_table()`. The description of a table is called
Expand Down Expand Up @@ -184,13 +183,11 @@ The general layouting instructions are summarized below:
Using those functions, it is possible to create a wide variety of
tables as we will show in this document.


## Adding Column Structure

We will now add more structure to the columns by adding a column split
based on the factor variable `arm`:


```{r}
lyt <- basic_table() %>%
split_cols_by("arm") %>%
Expand Down

0 comments on commit 008768b

Please sign in to comment.