General
PromptBeginner5 minmarkdown
- `lengths(x)` returns the length of **each element** of a list. Equivalent to `sapply(x
length)` but faster (implemented in C).
0
Explore
115,727 skills indexed with the new KISS metadata standard.
length)` but faster (implemented in C).
x)` returns the **index** of the first match (like `Find` but returns position
...)` is a simple wrapper for `mapply(f
x)` keeps elements where `f(elem)` is `TRUE`. Unlike `x[sapply(x
x
x)` applies binary function `f` cumulatively: `Reduce(+
x
args_list)` — `args` must be a **list**
gotchas
`warning()`
expr)` avoids repeating `df$` everywhere
need Reduce/Filter/Map
time zones cause off-by-one
`*` vs `:`
surprising defaults
read the reference files in `references/`:
med
df2) # stack rows (same columns)
df2) # bind columns (same rows)
breaks = c(0
]
]
-df$value)
] # descending