r-simmer / simmer

Discrete-Event Simulation for R
https://r-simmer.org
GNU General Public License v2.0
222 stars 42 forks source link

Subset by tag #305

Closed Enchufa2 closed 1 month ago

Enchufa2 commented 9 months ago

Now that activities can be tagged, this could be possible:

> x <- trajectory() |>
>   timeout(1, tag="one") |>
>   timeout(2, tag="two") |>
>   timeout(3, tag="three")
> x["two"]
trajectory: anonymous, 1 activities
{ Activity: Timeout      | [two] delay: 2 }