customizing-vectors-r

Community

Type-stable vectors in R with vctrs.

Authorjustanesta
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Designing and implementing type-stable custom vector types in R using vctrs, ensuring predictable outputs and consistent behavior across operations.

Core Features & Use Cases

  • Type-stable functions with vec_cast and vec_ptype2 for safe inter-type operations
  • Building custom vector classes with new_vctr and a format method for tidy data frames
  • Testing and validation guidance with testing-vctrs to maintain robustness in packages

Quick Start

Install a basic vctrs-based vector class by creating a constructor, coercion/casting hooks, and minimal tests to verify type stability.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: customizing-vectors-r
Download link: https://github.com/justanesta/claude-code-resources/archive/main.zip#customizing-vectors-r

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.