diff --git a/functions.qmd b/functions.qmd index 16a1354..de7516d 100644 --- a/functions.qmd +++ b/functions.qmd @@ -532,7 +532,7 @@ flights |> unique_where(tailnum == "N14228", month) Here we embrace `condition` because it's passed to `filter()` and `var` because its passed to `distinct()`, `arrange()`, and `pull()`. We've made all these examples take a data frame as the first argument, but if you're working repeatedly with the same data, it can make sense to hardcode it. -For example, the following function always works with the flights dataset and always selects `time_hour`, `carrier`, and `flight` since they are form the compound primary key that allows you to identify a row. +For example, the following function always works with the flights dataset and always selects `time_hour`, `carrier`, and `flight` since they form the compound primary key that allows you to identify a row. ```{r} flights_sub <- function(rows, cols) {