Dataset findset: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Scott
(Created page with "===Purpose=== Locate a set within a label field (axisscale,label,class) in a DataSet. ===Synopsis=== :setnum = findset(dso,'field',mode,name) ===Description=== Returns the transp...")
 
imported>Scott
No edit summary
Line 4: Line 4:
:setnum = findset(dso,'field',mode,name)
:setnum = findset(dso,'field',mode,name)
===Description===
===Description===
Returns the transposed DataSet object x in which rows are now columns and vice versa (mode 1 becomes mode 2 and mode 2 becomes mode 1). All fields are transposed as necessary. This specific command only operates on vector and two-way DataSet objects. To modify multi-way DataSet objects (more than 2 modes), use the [[dataset_permute|PERMUTE]] method.
Locates a class, axisscale, or label set, as indicated in the "field" input, on the indicated mode, with the matching name (if name is supplied).
 
===Example===
The following demonstrates the transpose of a DataSet object, a:
<pre>
>> a.data
ans =
    1    2
    30    40
>> a=a';
>> a.data
ans =
    1    30
    2    40
</pre>


===See Also===
===See Also===
[[dataset_permute]]
[[dataset_subsasign]], [[dataset_updateset]]

Revision as of 11:48, 12 September 2012

Purpose

Locate a set within a label field (axisscale,label,class) in a DataSet.

Synopsis

setnum = findset(dso,'field',mode,name)

Description

Locates a class, axisscale, or label set, as indicated in the "field" input, on the indicated mode, with the matching name (if name is supplied).

See Also

dataset_subsasign, dataset_updateset