type: Type Selection Helper

View source: R/type.R

typeR Documentation

Type Selection Helper

Description

Function to swiftly provide access to generic categories of types within R. These can be used to provide comprehensive typesetting when creating a safeframe object.

Usage

type(x)

Arguments

x

Character indicating the desired type. Options include date, category, numeric, binary at this time.

Value

A vector of classes

Examples

x <- make_safeframe(cars,
  mph = "speed",
  distance = "dist"
)

validate_types(
  x,
  mph = type("numeric"),
  distance = "numeric"
)


safeframe documentation built on June 28, 2025, 1:08 a.m.