Why does POSIXlt behavior differ in R when its S3 class is lost inside of vs. outside of a data.frame?
Summary This incident examines why POSIXlt behaves differently when its S3 class is lost inside vs. outside a data.frame. The behavior surprises many engineers because POSIXlt is a deeply nested list-based S3 class, and R’s assignment semantics interact with it in ways that differ from simpler S3 vectors. The result is inconsistent coercion: list‑coercion in … Read more