- `tryCatch` **unwinds** the call stack — handler runs in the calling environment
not where the error occurred. Cannot resume execution.
Explore
122,072 skills indexed with the new KISS metadata standard.
not where the error occurred. Cannot resume execution.
error = function(e) e)` returns the error condition object.
warning = function(w) {...})` catches the **first** warning and exits. Use `withCallingHandlers` + `invokeRestart(muffleWarning)` to suppress warnings but continue.
x)` returns the **index** of the first match (like `Find` but returns position
x)` returns the **first** element where `f(elem)` is `TRUE`. `Find(f
length)` but faster (implemented in C).
x)` keeps elements where `f(elem)` is `TRUE`. Unlike `x[sapply(x
x
...)` is a simple wrapper for `mapply(f
x
x
x)` applies binary function `f` cumulatively: `Reduce(+
args_list)` — `args` must be a **list**
gotchas
expr)` avoids repeating `df$` everywhere
need Reduce/Filter/Map
`warning()`
time zones cause off-by-one
`*` vs `:`
read the reference files in `references/`:
surprising defaults
med
df2) # stack rows (same columns)
df2) # bind columns (same rows)