Forms new data structures with attributes taken from an existing structure.
||Which attributes to duplicate (
||Whether or not to delete the attributes of the new structures beforehand so that their types can be redefined (
||Data structures to provide attributes for the new structures|
||Identifiers of the new structures|
||Values for each new structure|
||Number of decimals for printing numerical structures|
||Number of characters for printing texts or labels of a factor|
||Extra text associated with each identifier|
||Minimum value for numerical structures|
||Maximum value for numerical structures|
DUPLICATE directive allows you to define new data structures with attributes like those of existing structures. The attributes to be duplicated are defined by the
ATTRIBUTES option. The structures from which the attributes are to be taken are specified by the
OLDSTRUCTURES parameter, while the structures that are to be defined are specified by the
NEWSTRUCTURES parameter. The other parameters allow some of the more important attributes to be reset at the same time. For example, here the factor
Species2 takes its levels (and thus its number of levels) from the factor
Species1. However, the labels are not transferred, and other values are defined using the
FACTOR [LEVELS=!(0,1); LABELS=!T(absent,present);\
DUPLICATE [ATTRIBUTES=levels] Species1;\
You can set option
REDEFINE=yes, to allow
DUPLICATE to change the type of any pre-defined new structure, if necessary, to have the same type as the corresponding old structure. Otherwise,
DUPLICATE will report a fault if the new structure has previously been defined to have a different type.
Commands for: Data structures.