Explore

Find agent skills by outcome

116,127 skills indexed with the new KISS metadata standard.

Showing 24 of 116,127Categories: General, Coding & Debugging, Productivity, Creative
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
General
PromptBeginner5 minmarkdown

- **Does** add new names not in `x` — it uses `x[names(val)] <- val` internally

so any name in `val` gets added or replaced.

0
General
PromptBeginner5 minmarkdown

- `modifyList(x

val)` replaces elements of list `x` with those in `val` by **name**.

0
General
PromptBeginner5 minmarkdown

- `FUN` argument applies a function to each combination: `combn(5

3

0
General
PromptBeginner5 minmarkdown

- Checks attributes

names

0
General
PromptBeginner5 minmarkdown

- `combn(n

m)` or `combn(x

0
General
PromptBeginner5 minmarkdown

- Returns `TRUE` or a **character string** describing the difference — NOT `FALSE`. Use `isTRUE(all.equal(x

y))` in conditionals.

0
General
PromptBeginner5 minmarkdown

- Custom conditions: `stop(errorCondition(msg

class = myError))` then catch with `tryCatch(...

0
General
PromptBeginner5 minmarkdown

- Tests **near equality** with tolerance (default `1.5e-8`

i.e.

0
General
PromptBeginner5 minmarkdown

- `tryCatch(expr

error = function(e) e)` returns the error condition object.

0