- `lengths(x)` returns the length of **each element** of a list. Equivalent to `sapply(x
length)` but faster (implemented in C).
Explore
118,584 skills indexed with the new KISS metadata standard.
length)` but faster (implemented in C).
x)` keeps elements where `f(elem)` is `TRUE`. Unlike `x[sapply(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
list_of_dfs)` to combine a list of data frames.
expr)` avoids repeating `df$` everywhere
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
`*` vs `:`
apply on data frame gives unexpected coercion
read the reference files in `references/`:
surprising defaults
med
df2) # stack rows (same columns)
df2) # bind columns (same rows)
breaks = c(0