Creative
PromptBeginner5 minmarkdown
- `Reduce` with `init` adds a starting value: `Reduce(f
x
0
Explore
110,869 skills indexed with the new KISS metadata standard.
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**
gotchas
expr)` avoids repeating `df$` everywhere
`warning()`
need Reduce/Filter/Map
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
breaks = c(0
df2) # stack rows (same columns)
df2) # bind columns (same rows)
]