- For data frames
operates on whole rows. For lists
Explore
129,002 skills indexed with the new KISS metadata standard.
operates on whole rows. For lists
not the first. Use `fromLast = TRUE` to reverse.
class table. Convert to data frame with `as.data.frame(tbl)`.
not `cbind.matrix`. Mixing matrices and data frames can give unexpected results.
`rbind(NULL)` also returns `NULL`.
not position. Missing columns get `NA`.
~ Month)`.
interaction is used; levels containing `.` can cause unexpected splits unless `sep` is changed.
adding a Row.names column.
so FUN should not expect additional args with same length as X.
names(y))` — can silently merge on unintended columns if data frames share column names.
Date objects become numeric).
`MARGIN`
result has dim `c(n
matrix
raw vectors
which can silently pick up wrong variables in programmatic use. Use `[` with explicit logic in functions.
`apply` coerces to matrix via `as.matrix` first — mixed types become character.
1]` returns a **vector** (drop=TRUE default for columns)
j)]`) coerces to matrix first — avoid.
not its character labels. Use `x[as.character(f)]` for label-based indexing.
gotchas
i = 1]` is `m[2
`trend`