Dataset listsets

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search

Purpose

For a given field and mode list the sets available.

Synopsis

[liststr, tblidx] = listsets(dso_in,fieldname,fieldmode)

Description

Creates a read-friendly list of fields and sets in a dataset. Also returns a map back to the fields that can be used to index from list to field/set. If field name/mode empty then list all. Second output (tblidx) is a map of list value back to dataset index with columns (Value Field Mode Set) where mode and or set = 0 for header lines. Returned table has columns:

  • index
  • field name
  • mode
  • set

Example

 liststr=
    LABEL                     
      Mode 1                  
        Quarry  [26]          
      Mode 2                  
        Element  [17]         
    CLASS                     
      Mode 1                  
        Quarry  [5]           
        Set 2  [empty]        
        Set 3  [5]            
    ...


 tblidx=
      [ 1]    'label'        [0]    [0]
      [ 2]    'label'        [1]    [0]
      [ 3]    'label'        [1]    [1]
      [ 4]    'label'        [2]    [0]
      [ 5]    'label'        [2]    [1]
      [ 6]    'class'        [0]    [0]
      [ 7]    'class'        [1]    [0]
      [ 8]    'class'        [1]    [1]
      [ 9]    'class'        [1]    [2]
      [10]    'class'        [1]    [3]
    ...

See Also

findset, rmset, search