Fit linear, generalized, and nonlinear mixed-effects models in R with lme4 and nlme: random intercepts, slopes, and crossed or nested designs.
Latest guides
View all →- Mixed Effects Models in R rguides.dev/guides
- Power Analysis in R: Sample Size with the pwr Package rguides.dev/guides
Power analysis in R: plan sample size and compute statistical power for t-tests, ANOVA, correlation, regression, and proportions with the pwr package.
- Text analysis with quanteda in R: a complete guide rguides.dev/guides
Build corpora, tokenise texts, and create document-feature matrices in R with quanteda for reproducible text analysis.
- Time Series with tsibble and fable rguides.dev/guides
Build tidy time series in R with tsibble and forecast them with the tidyverts pipeline: tsibble, fable, fabletools, and feasts.
- Creating htmlwidgets in R: A Step-by-Step Developer's Guide rguides.dev/guides
Walk through creating htmlwidgets in R from scratch: package layout, R and JavaScript bindings, YAML dependencies, and Shiny integration for any JS library.
Reference
View all →| Name | Section | Description |
|---|---|---|
regexpr | Base Functions | regexpr() returns the position and length of the first regex match in each element of a character vector in R. |
aggregate() | Base Functions | aggregate() splits data into subsets by one or more grouping variables and applies a summary function to each, returning a data frame of per-subset results. |
reshape() | Base Functions | Convert data between wide and long format with the base R reshape() function from the stats package: arguments, examples, gotchas. |
by() | Base Functions | by() applies a function to subsets of a data frame split by one or more factors — the data-frame wrapper for tapply(). |
within | Base Functions | Return a copy of a data frame or list with columns or elements added, modified, or removed by an expression. `within()` is the write counterpart of `with()`. |
with | Base Functions | Evaluate an R expression in a local environment built from a data frame, list, or environment, so columns are reachable by short name. Pairs with `within()`. |
Tutorial series
View all →Latest articles
View all →- ggplot2 vs plotly: When to Use Each in R rguides.dev/articles
The ggplot2 vs plotly decision shapes your R data viz workflow in 2026. Compare static publication graphics with interactive strengths of both libraries.
- Quarto vs R Markdown in 2026: Which Should You Use? rguides.dev/articles
Quarto vs R Markdown: the official successor is here. This 2026 comparison helps you choose the right tool for your reproducible reporting workflow.
- Data Visualization Best Practices in R rguides.dev/articles
Create effective, informative data visualizations in R. This guide covers ggplot2, color theory, chart selection, and common pitfalls to avoid.