Skip to content

Commit

Permalink
Use native pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
hughjonesd committed Jul 1, 2024
1 parent 3dc1141 commit cbb3a7f
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 104 deletions.
10 changes: 5 additions & 5 deletions docs/huxreg.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ huxtable commands.
```{r}
suppressPackageStartupMessages(library(dplyr))
diamond_regs %>%
diamond_regs |>
map_background_color(-1, -1, by_regex(
"\\*" = "yellow"
)) %>%
set_italic(final(1), 1) %>%
)) |>
set_italic(final(1), 1) |>
set_caption("Linear regressions of diamond prices")
```
Expand Down Expand Up @@ -141,8 +141,8 @@ from your models by `broom::glance`:
```{r}
gl <- as_hux(broom::glance(lm1))
gl %>%
restack_down(cols = 3, on_remainder = "fill") %>%
gl |>
restack_down(cols = 3, on_remainder = "fill") |>
set_bold(odds, everywhere)
```

Expand Down
Loading

0 comments on commit cbb3a7f

Please sign in to comment.