vctrs Tools for making size and type consistent functions
summary
vctrs implements a consistent coercion system for vectors, including a stricter vec_c that throws errors instead of silently coercing, and a prototype mechanism to explicitly cast outputs. It formalizes type stability and size/recycling rules, treats nested data frames as supported column types, and supplies helpers for defining new vector classes. Demos show predictable outputs and safer errors where base R returned surprising values; it’s designed to be integrated into the tidyverse.
AI-written summary · about
chapters (9)
- 0:00Introduction to vctrs
- 0:30Problems with base R
- 3:20Principles of consistency
- 6:07Type coercion in vctrs
- 7:47Demonstration of vctrs
- 12:29Type stability principles
- 16:27Size stability and structure
- 18:27Creating new types
- 19:33Conclusion and Q&A
related talks
04mThe Expanse - Navigating the R Package Universe
41mReusable Code, Reusable Data Structures
48mTDD, Like in Type Driven Development
01h 11mPragmatic Simplicity - Actionable Guidelines To Tame Cpp Complexity
52mMaking Iterators, Views and Containers Easier to Write with Boost.STLInterfaces
01h 00mBack to Basics: Rvalues and Move Semantics in C++
07m2x7 DVE Config
29mREVIS: An Error Visualization Tool for Rust
