Learn R Programming

safeframe (version 1.0.0)

type: 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)

Value

A vector of classes

Arguments

x

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

Examples

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

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

Run the code above in your browser using DataLab