Skip to content
R for the Rest of Us Logo

Ally AI skill

Base R Programming

Description

Provides base R programming guidance covering data structures, data wrangling, statistical modeling, visualization, and I/O — using only packages included in a standard R installation. Use when the user writes or debugs R scripts, works with vectors, matrices, lists, data frames, or factors, applies the apply family (sapply, lapply, vapply, tapply), fits models with lm/glm/aov/nls, creates base graphics with plot/barplot/hist/boxplot/par, reads or writes CSV/RDS/RData files, or asks about R language semantics such as environments, scoping, and non-standard evaluation. Also use for R statistical functions (t.test, chisq.test, cor, kmeans, prcomp), string operations, date handling, and file system utilities. Do not use for tidyverse workflows (dplyr, tidyr, purrr), ggplot2, data.table, Shiny, R package development, Rcpp, or Python/Julia/Stata tasks.

Installation

There are a number of ways to install skills. We made {ally}, an R package that simplifies the process. Learn more

Install {pak}:

install.packages("pak")

Then install {ally}:

pak::pak("rfortherestofus/ally")

You only need to do this once per computer.

After you've installed the {ally} package, choose whether you want to install the skill in this project or in all of your projects, then run the command.

ally::install_skill("https://github.com/iremaydas/base-r-skill/blob/main/SKILL.md")

This puts the skill in locations that all agents can read, inside this project, so anyone you're working with on the project can use it.

ally::install_skill("https://github.com/iremaydas/base-r-skill/blob/main/SKILL.md", scope = "user")

This puts the skill in locations that all agents can read, in your home folder, so every project you work on can use it.

Source Code

Name Last commit message Last commit date
assets Add base-r skill 6 months ago
references Remove junk files, add .gitignore 6 months ago
scripts Add base-r skill 6 months ago
.gitignore Remove junk files, add .gitignore 6 months ago
.Rhistory Add base-r skill 6 months ago
LICENSE Initial commit 6 months ago
README.md Add README 6 months ago
SKILL.md Add base-r skill 6 months ago