![]() |
![]() |
|
PLS_Toolbox Documentation: copydsfields | < conload | corcondia > |
copydsfields
Purpose
Copies informational fields between datasets and/or model structures.
Synopsis
to = copydsfields(from,to,modes,block)
Description
Copies all informational fields from one dataset to another, one model structure to another, or between datasets and models. This function copies the fields: label, class, classlookup, title, axisscale, and includ as well as the "<field>name" assosciated with each (e.g. classname). If copying to or from a model structure, the fields to be copied from/to are sub-fields of the detail field.
INPUTS:
OPTIONAL INPUTS:
OUTPUT:
Examples
mydataset2 = copydsfields(mydataset1, mydataset2);
copies all fields for all modes of mydataset1 into mydataset2 (copies set 1 only).
mydataset2 = copydsfields(modl, mydataset2, {2 1});
copies all fields from mode 2 (variables) of modl into mode 1 of mydataset2.
modl = copydsfields(mydataset,modl,1,{1 2});
copies all fields for mode 1 (samples) from set 1 of mydataset into block 2 (e.g. y-block) of modl.
See Also
dataset/dataset, modelstruct, pca, pcr, pls
< conload | corcondia > |