Explore

Find agent skills by outcome

124,542 skills indexed with the new KISS metadata standard.

Showing 24 of 124,542Categories: Data & Insights, Coding & Debugging, General
General
PromptBeginner5 minmarkdownQuality: 24

- Returns a permutation vector of indices

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

0
General
PromptBeginner5 minmarkdownQuality: 28

- For character sorting

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

0
General
PromptBeginner5 minmarkdownQuality: 24

- Default is ascending; use -x for descending numeric

or decreasing = TRUE.

0
General
PromptBeginner5 minmarkdownQuality: 24

- Works on multiple arguments (e.g.

`complete.cases(x

0
General
PromptBeginner5 minmarkdownQuality: 28

- Returns columns named after the grouping variables

with result column keeping the original name.

0
General
PromptBeginner5 minmarkdownQuality: 24

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

but earlier versions converted to integer.

0
General
PromptBeginner5 minmarkdownQuality: 24

- Levels are sorted by default

but sort order is locale-dependent at creation time.

0
General
PromptBeginner5 minmarkdownQuality: 28

- Only == and != work between factors; factors must have identical level sets. Ordered factors suppo...

.

0
General
PromptBeginner5 minmarkdownQuality: 28

- Duplicate column names allowed only with check.names = FALSE

but many operations will de-dup them silently.

0
Coding & Debugging
PromptBeginner5 minmarkdownQuality: 28

- as.numeric(f) returns integer codes

not original values. Use as.numeric(levels(f))[f] or as.numeric(as.character(f)).

0
General
PromptBeginner5 minmarkdownQuality: 28

- duplicated marks the second and later occurrences as TRUE

not the first. Use fromLast = TRUE to reverse.

0
General
PromptBeginner5 minmarkdownQuality: 28

- Atomic vectors recycle to match longest column

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

0
General
PromptBeginner5 minmarkdownQuality: 28

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

rbind(NULL) also returns NULL.

0
General
PromptBeginner5 minmarkdownQuality: 28

- If f is a list of factors

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

0
General
PromptBeginner5 minmarkdownQuality: 24

- Supports formula syntax: `split(df

~ Month)`.

0
General
PromptBeginner5 minmarkdownQuality: 28

- ... 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 minmarkdownQuality: 24

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

adding a Row.names column.

0
General
PromptBeginner5 minmarkdownQuality: 24

- ... args cannot share names with X

MARGIN

0
General
PromptBeginner5 minmarkdownQuality: 24

- sapply can return a vector

matrix

0
General
PromptBeginner5 minmarkdownQuality: 24

- Factors

raw vectors

0
General
PromptBeginner5 minmarkdownQuality: 24

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

result has dim `c(n

0
Coding & Debugging
PromptBeginner5 minmarkdownQuality: 28

- 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 minmarkdownQuality: 24

- `m[j = 2

i = 1] is m[2

0
General
PromptBeginner5 minmarkdownQuality: 24

Non-obvious behaviors

gotchas

0