Skip to content

Commit

Permalink
vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Dec 13, 2024
1 parent 2a65f3c commit 696332b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions vignettes/format.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ tt(dat) |>
format_tt(
j = 2:4,
digits = 1,
date = "%B %d %Y"
date = "%B %d %Y",
bool = tolower
) |>
format_tt(
j = 1,
Expand Down Expand Up @@ -176,15 +177,13 @@ tt(dat) |>

## Replacement

Missing values can be replaced by a custom string using the `replace` argument (default `""`):
Missing values can be replaced by a custom string using the `replace` argument:

```{r}
tab <- data.frame(a = c(NA, 1, 2), b = c(3, NA, 5))
tt(tab)
tt(tab) |> format_tt()
tt(tab) |> format_tt(replace = "-")
```

Expand Down

0 comments on commit 696332b

Please sign in to comment.