Explore

Find agent skills by outcome

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

Showing 24 of 107,182Categories: Data & Insights, Communication, Cursor-rules, Coding & Debugging, General
General
PromptBeginner5 minmarkdown

- `list.files(pattern = *.csv)` — `pattern` is a **regex**

not a glob! Use `glob2rx(*.csv)` or `\\.csv$`.

0
General
PromptBeginner5 minmarkdown

- `file.path(a

b

0
General
PromptBeginner5 minmarkdown

- `options(digits.secs = n)`: max decimal digits for seconds in time formatting (0-6

default 0).

0
General
PromptBeginner5 minmarkdown

- `options(OutDec =

)`: change decimal separator in output (affects `format`

0
General
PromptBeginner5 minmarkdown

- `options(warn = n)`: -1 = ignore warnings

0 = collect (default)

0
General
PromptBeginner5 minmarkdown

- `options(digits = n)`: significant digits for printing (1-22

default 7). Suggestion only.

0
General
PromptBeginner5 minmarkdown

- `system.time(expr)` returns `user`

`system`

0
General
PromptBeginner5 minmarkdown

- `options(scipen = n)`: positive biases toward fixed notation

negative toward scientific. Default 0. Applies to `print`/`format`/`cat` but not `sprintf`.

0
General
PromptBeginner5 minmarkdown

- `as.numeric(diff

units = hours)` to extract numeric value in specific units.

0
General
PromptBeginner5 minmarkdown

- `difftime(time1

time2

0
General
PromptBeginner5 minmarkdown

- Explicit units: `secs`

`mins`

0
General
PromptBeginner5 minmarkdown

- `POSIXlt`: list with components `$sec`

`$min`

0
General
PromptBeginner5 minmarkdown

- `difftime` arithmetic: subtracting POSIXct objects gives difftime. Units auto-selected (secs

mins

0
General
PromptBeginner5 minmarkdown

- `POSIXct`: seconds since 1970-01-01 UTC (compact

a numeric vector).

0
General
PromptBeginner5 minmarkdown

- `seq.Date(from

to

0
General
PromptBeginner5 minmarkdown

> Non-obvious behaviors

gotchas

0
General
PromptBeginner5 minmarkdown

- `format(date

%Y)` for year

0
General
PromptBeginner5 minmarkdown

- For character sorting

depends on locale. Use `method = radix` for locale-independent fast sorting.

0
General
PromptBeginner5 minmarkdown

- Default is ascending; use `-x` for descending numeric

or `decreasing = TRUE`.

0
General
PromptBeginner5 minmarkdown

- Returns a **permutation vector** of indices

not the sorted values. Use `x[order(x)]` to sort.

0
General
PromptBeginner5 minmarkdown

- Works on multiple arguments (e.g.

`complete.cases(x

0
General
PromptBeginner5 minmarkdown

- Returns columns named after the grouping variables

with result column keeping the original name.

0
General
PromptBeginner5 minmarkdown

- Levels are sorted by default

but sort order is **locale-dependent** at creation time.

0
General
PromptBeginner5 minmarkdown

- `c()` on factors unions level sets (since R 4.1.0)

but earlier versions converted to integer.

0