General
PromptBeginner5 minmarkdown
- `Filter(f
x)` keeps elements where `f(elem)` is `TRUE`. Unlike `x[sapply(x
0
Explore
121,984 skills indexed with the new KISS metadata standard.
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
apply on data frame gives unexpected coercion
`*` vs `:`
surprising defaults
read the reference files in `references/`:
med
breaks = c(0
]
df2) # bind columns (same rows)
df2) # stack rows (same columns)
-df$value)