- model.matrix creates the design matrix including dummy coding. Default contrasts: contr.treatment...
contr.poly for ordered.
Explore
17,322 skills indexed with the new KISS metadata standard.
contr.poly for ordered.
start
isdir
result column is a matrix column inside the data frame.
data
operates on whole rows. For lists
not position. Missing columns get NA.
class table. Convert to data frame with as.data.frame(tbl).
not cbind.matrix. Mixing matrices and data frames can give unexpected results.
names(y))` — can silently merge on unintended columns if data frames share column names.
Date objects become numeric).
apply coerces to matrix via as.matrix first — mixed types become character.
j)]`) coerces to matrix first — avoid.
1]` returns a vector (drop=TRUE default for columns)
which can silently pick up wrong variables in programmatic use. Use [ with explicit logic in functions.
start
skeleton) — flesh` is the flat data
warning = function(w) {...}) catches the first warning and exits. Use withCallingHandlers + invokeRestart(muffleWarning)` to suppress warnings but continue.
x
listofdfs)` to combine a list of data frames.
regex behaves differently than expected
layout/mfrow interaction is confusing
need to choose correct p.adjust method
apply on data frame gives unexpected coercion