Explore

Find agent skills by outcome

12,437 skills indexed with the new KISS metadata standard.

Showing 24 of 12,437Categories: Data, Research & Learning, Cursor-rules, Coding & Debugging
Data
PromptBeginner5 minmarkdown

- On a **data frame**

`apply` coerces to matrix via `as.matrix` first — mixed types become character.

0
Data
PromptBeginner5 minmarkdown

- Matrix indexing a data frame (`df[cbind(i

j)]`) coerces to matrix first — avoid.

0
Data
PromptBeginner5 minmarkdown

- Data frame `[` with single column: `df[

1]` returns a **vector** (drop=TRUE default for columns)

0
Data
PromptBeginner5 minmarkdown

- `subset` argument uses **non-standard evaluation** — column names are resolved in the data frame

which can silently pick up wrong variables in programmatic use. Use `[` with explicit logic in functions.

0
Coding & Debugging
PromptBeginner5 minmarkdown

- Factor indexing: `x[f]` uses integer codes of factor `f`

not its character labels. Use `x[as.character(f)]` for label-based indexing.

0
Data
PromptBeginner5 minmarkdown

- `ts(data

start

0
Data
PromptBeginner5 minmarkdown

- `relist(flesh

skeleton)` — `flesh` is the flat data

0
Data
PromptBeginner5 minmarkdown

- Useful pattern: `do.call(rbind

list_of_dfs)` to combine a list of data frames.

0
Data
PromptBeginner5 minmarkdown

- **io-and-text.md** — Read when: read.table silently drops data or misparses columns

regex behaves differently than expected

0
Data
PromptBeginner5 minmarkdown

- **visualization.md** — Read when: par settings reset unexpectedly

layout/mfrow interaction is confusing

0
Data
PromptBeginner5 minmarkdown

- **statistics.md** — Read when: hypothesis test gives surprising result

need to choose correct p.adjust method

0
Data
PromptBeginner5 minmarkdown

- **data-wrangling.md** — Read when: subsetting returns wrong type

apply on data frame gives unexpected coercion

0
Data
PromptBeginner5 minmarkdown

fit <- aov(value ~ group

data = df)

0
Data
PromptBeginner5 minmarkdown

predict(fit

newdata = new_df)

0
Data
PromptBeginner5 minmarkdown

fit <- lm(y ~ x1 + x2

data = df)

0
Data
PromptBeginner5 minmarkdown

boxplot(value ~ group

data = df

0
Data
PromptBeginner5 minmarkdown

saveRDS(obj

data.rds)

0
Data
PromptBeginner5 minmarkdown

df <- read.table(data.txt

header = TRUE

0
Data
PromptBeginner5 minmarkdown

df <- read.csv(data.csv

stringsAsFactors = FALSE)

0
Data
PromptBeginner5 minmarkdown

aggregate(value ~ group

data = df

0
Coding & Debugging
PromptBeginner5 minmarkdown

A comprehensive reference for base R programming — covering data structures

control flow

0
Coding & Debugging
PromptBeginner5 minmarkdown

description: Provides base R programming guidance covering data structures

data wrangling

0
Data
PromptBeginner5 minmarkdown

- “What exactly changes with EU data residency

and what must we verify for auditors?”

0
Data
PromptBeginner5 minmarkdown

- Truthfulness rule for residency questions: if asked whether “all data stays in the EU

” the agent states only what’s documented and outlines how to verify scope in official docs and tenant configuration.

0