R in the browser

Author

Denis Schluppeck

Published

2025-01-14

Some example code snarfed from https://r-wasm.github.io/quarto-live/

Interactive code blocks

Interactive exercises

Take the starwars dataset and filter so that only characters of species “Droid” are returned.

Hint 1

Consider using the filter() function from dplyr.

starwars |> filter(______)

Fully worked solution:

Use the filter() function from dplyr:

1starwars |>
2    filter(species == "Droid")
1
Take the starwars dataset, and then,
2
Filter for the “Droid” species.

Read-only and hidden code blocks

Reactive code block inputs