Skip to content

Commit

Permalink
replace (x |> f1() |> f2())$var with |> pluck("var") (nicer syntax)
Browse files Browse the repository at this point in the history
  • Loading branch information
idavydov committed Mar 13, 2024
1 parent 9505310 commit 1e9e541
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vignettes/osat.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ OSAT::get.experiment.setup(g_setup) |>
# Compare scores with various implementations
Compare OSAT score generated using designit.
```{r}
(OSAT::getLayout(gc) |>
OSAT::getLayout(gc) |>
left_join(OSAT::get.experiment.setup(g_setup)) |>
data.table::data.table() |>
osat_score("plates", c("SampleType", "Race", "AgeGrp")))$score
osat_score("plates", c("SampleType", "Race", "AgeGrp")) |>
pluck("score")
# score using OSAT
g_setup@metadata$optValue |> tail(1)
Expand Down

0 comments on commit 1e9e541

Please sign in to comment.