new_struct: Generate a 'struct' object from a Class

Description Usage Arguments Value Examples

View source: R/struct_class.R

Description

This function creates a newly allocated object from the class identified by the first argument. It works almost identically to new but is specific to objects from the struct package and ensures that entity slots have their values assigned correctly. This function is usually called by class constructors and not used directly.

Usage

1

Arguments

class

The class of struct object to create

...

named slots and values to assign

Value

An object derived from struct_class

Examples

1
S = new_struct('struct_class')

struct documentation built on Nov. 8, 2020, 8:14 p.m.