Explore

Find agent skills by outcome

107,169 skills indexed with the new KISS metadata standard.

Showing 24 of 107,169Categories: Coding & Debugging, Research & Learning, Cursor-rules, General
General
PromptBeginner5 minmarkdown

- Atomic vectors recycle to match longest column

but only if exact multiple. Protect with `I()` to prevent conversion.

0
General
PromptBeginner5 minmarkdown

- `cbind(NULL)` returns `NULL` (not a matrix). For consistency

`rbind(NULL)` also returns `NULL`.

0
General
PromptBeginner5 minmarkdown

- Supports formula syntax: `split(df

~ Month)`.

0
General
PromptBeginner5 minmarkdown

- If `f` is a list of factors

interaction is used; levels containing `.` can cause unexpected splits unless `sep` is changed.

0
General
PromptBeginner5 minmarkdown

- `...` args to FUN are **not** divided into cells — they apply globally

so FUN should not expect additional args with same length as X.

0
General
PromptBeginner5 minmarkdown

- `by = 0` or `by = row.names` merges on row names

adding a Row.names column.

0
General
PromptBeginner5 minmarkdown

- `...` args cannot share names with `X`

`MARGIN`

0
General
PromptBeginner5 minmarkdown

- `sapply` can return a vector

matrix

0
General
PromptBeginner5 minmarkdown

- Return value orientation is transposed: if FUN returns length-n vector

result has dim `c(n

0
General
PromptBeginner5 minmarkdown

- Factors

raw vectors

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
General
PromptBeginner5 minmarkdown

- `m[j = 2

i = 1]` is `m[2

0
General
PromptBeginner5 minmarkdown

> Non-obvious behaviors

gotchas

0
General
PromptBeginner5 minmarkdown

- `stl` requires `s.window` (seasonal window) — must be specified

no default. `s.window = periodic` assumes fixed seasonality.

0
General
PromptBeginner5 minmarkdown

- `stl` result components: `$time.series` matrix with columns `seasonal`

`trend`

0
General
PromptBeginner5 minmarkdown

- `decompose`: simpler than `stl`

uses moving averages. `type = additive` or `multiplicative`.

0
General
PromptBeginner5 minmarkdown

- `vignette()` lists all vignettes; `vignette(name

package = pkg)` opens a specific one.

0
General
PromptBeginner5 minmarkdown

- `arima(x

order = c(p

0
General
PromptBeginner5 minmarkdown

- Update with `setTxtProgressBar(pb

value)`. Close with `close(pb)`.

0
General
PromptBeginner5 minmarkdown

- Style 1: rotating `|/-\`

style 2: simple progress. Only style 3 shows percentage.

0
General
PromptBeginner5 minmarkdown

- `format(object.size(x)

units = MB)` for human-readable output.

0
General
PromptBeginner5 minmarkdown

- Works with factors

matrices

0
General
PromptBeginner5 minmarkdown

- `txtProgressBar(min

max

0
General
PromptBeginner5 minmarkdown

- Inverse of `unlist`: given a flat vector and a skeleton list

reconstructs the nested structure.

0