Skip to content

Commit

Permalink
tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Jan 13, 2024
1 parent cc9843e commit 8130f1b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions vignettes/tutorial.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ x <- mtcars[1:4, 1:5]
tt(x)
```

```{r, include=FALSE}
# after library to override and build with dev version
pkgload::load_all()
```

## Output formats

Expand Down Expand Up @@ -409,11 +405,11 @@ tt(dat) |>
We can use the standard `which` function from Base `R` to create indices and apply conditional stying on rows. And we can use a regular expression in `j` to apply conditional styling on columns:

```{r}
dat <- mtcars[1:10, 1:5]
k <- mtcars[1:10, 1:5]
tt(dat) |>
tt(k) |>
style_tt(
i = which(dat$gear > dat$carb),
i = which(k$gear > k$carb),
j = "mpg|hp",
background = "lightgreen")
```
Expand Down

0 comments on commit 8130f1b

Please sign in to comment.