- `tryCatch(expr
warning = function(w) {...})` catches the **first** warning and exits. Use `withCallingHandlers` + `invokeRestart(muffleWarning)` to suppress warnings but continue.
Explore
126,408 skills indexed with the new KISS metadata standard.
warning = function(w) {...})` catches the **first** warning and exits. Use `withCallingHandlers` + `invokeRestart(muffleWarning)` to suppress warnings but continue.
i.e.
class = myError))` then catch with `tryCatch(...
length)` but faster (implemented in C).
error = function(e) e)` returns the error condition object.
not where the error occurred. Cannot resume execution.
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
...)` is a simple wrapper for `mapply(f
x
x)` keeps elements where `f(elem)` is `TRUE`. Unlike `x[sapply(x
x
x
x)` applies binary function `f` cumulatively: `Reduce(+
list_of_dfs)` to combine a list of data frames.
args_list)` — `args` must be a **list**
expr)` avoids repeating `df$` everywhere
gotchas
need Reduce/Filter/Map
`warning()`
time zones cause off-by-one
regex behaves differently than expected
layout/mfrow interaction is confusing
need to choose correct p.adjust method