Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add LeoLin990405/r-analytics-skill --skill reshape2git clone --depth 1 https://github.com/LeoLin990405/r-analytics-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/leolin990405/r-analytics-skill/reshape2)<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/reshape2"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/reshape2/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/reshape2"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/reshape2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00024 | $0.00581 |
| Opus 5.5 | $0.00010 | $0.00232 |
| Sonnet 5.5 | $0.00005 | $0.00116 |
| Haiku 4.5 | $0.00002 | $0.00058 |
Grade A, and why
reshape2 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
reshape2
Flexibly reshape data.
Melt (Wide to Long)
library(reshape2)
# Basic melt
long_df <- melt(wide_df)
# Specify id variables
long_df <- melt(wide_df, id.vars = c("id", "name"))
# Specify measure variables
long_df <- melt(wide_df,
id.vars = "id",
measure.vars = c("var1", "var2", "var3")
)
# Custom column names
long_df <- melt(wide_df,
id.vars = "id",
variable.name = "metric",
value.name = "score"
)
Cast (Long to Wide)
# dcast for data frames
wide_df <- dcast(long_df, id ~ variable)
# With aggregation
wide_df <- dcast(long_df, id ~ variable, fun.aggregate = mean)
wide_df <- dcast(long_df, id ~ variable, fun.aggregate = sum)
# Multiple id variables
wide_df <- dcast(long_df, id + name ~ variable)
# acast for arrays/matrices
arr <- acast(long_df, id ~ variable)
Formula Syntax
# row_var ~ col_var
dcast(df, id ~ variable)
# Multiple row variables
dcast(df, id + group ~ variable)
# Multiple column variables
dcast(df, id ~ var1 + var2)
# All variables on one side
dcast(df, ... ~ variable) # All others as rows
dcast(df, id ~ ...) # All others as columns
Handling Missing Values
# Fill missing with value
wide_df <- dcast(long_df, id ~ variable, fill = 0)
wide_df <- dcast(long_df, id ~ variable, fill = NA)
# Drop missing
wide_df <- dcast(long_df, id ~ variable, drop = TRUE)
Multiple Value Columns
# Melt multiple measure columns
long_df <- melt(wide_df,
id.vars = "id",
measure.vars = list(
c("a1", "a2", "a3"),
c("b1", "b2", "b3")
),
variable.name = "time",
value.name = c("metric_a", "metric_b")
)
Comparison with tidyr
# reshape2::melt = tidyr::pivot_longer
# reshape2::dcast = tidyr::pivot_wider
# reshape2 is faster for large datasets
# tidyr has cleaner syntax
# Both achieve same results
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 105 lines · 24 tokens per session scan A a843896b8c8a
reshape2 is a skill published in the GitHub repository LeoLin990405/r-analytics-skill (6 stars, last pushed 28d ago), licensed MIT. It adds 24 tokens to every session and 581 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
reshape2 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| reshape2LeoLin990405/r-analytics-skill | Skill | 6 | 28d ago | MIT | A | 24 | Claude Code, Codex |
| data-science-statistical-analysisj4flmao/agent-skills | Skill | 47 | 16d ago | MIT | A | 84 | Claude Code, Codex |
| tidy-rstatzhero/tidy-r-skill | Skill | 29 | 16d ago | MIT | A | 102 | Claude Code |
| data-science-expertpersonamanagmentlayer/pcl | Skill | 47 | 1mo ago | Apache-2.0 | A | 54 | Claude Code |
| r-expertpersonamanagmentlayer/pcl | Skill | 47 | 1mo ago | Apache-2.0 | A | 53 | Claude Code |
| ask-zillizzilliztech/zilliz-plugin | Skill | 3 | 6d ago | Apache-2.0 | A | 57 | Claude Code |
| aclzilliztech/zilliz-plugin | Skill | 3 | 6d ago | Apache-2.0 | A | 50 | Claude Code |