You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use dplyr filter() and select() to subset datasets in R, not base [] #111
Subset a data frame or tibble with dplyr::filter() (rows) and dplyr::select() (columns), and extract one column with dplyr::pull(), never with base df[i, j], df[i, ], df[, j] or df[df$x > 0, ].
Work
Add the rule to chapters/coding-style/tidyverse-replacements.qmd.
Add a deny-form check to lms that flags x[i, ] and x[, j] (a [ call with an empty argument), so lint-changed-lines catches it. Matrices keep base [] with # nolint.
Mirror the rule in ai-config's shared/coding/tidy-code.md (Morrison-Lab/ai-config tracking issue to follow).
Apply it to the cited lds example, and list the other base-[] sites in lds R code (separate lds issues; no sweep).
Activity