Learn R Programming

rtemis (version 0.79)

strict: 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