strict: Strict assignment by class or type

View source: R/strict.R

strictR Documentation

Strict assignment by class or type

Description

Allow assignment only if input is of correct class and/or type

Usage

strict(x, accept.class = NULL, accept.type = NULL)

Arguments

x

Value to be assigned if type matches

accept.class

Required class of value

accept.type

Required type of value

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on March 28, 2024, 12:53 p.m.