Next: console() Up: MacAnova Help File Previous: complex   Contents

compnames()

Usage:
compnames(S), S a structure



Keywords: structures, character variables
compnames(struc) returns a CHARACTER vector containing the names of the
components of STRUCTURE struc.

  Cmd>compnames(structure(a:1,b:2,c:17)) # returns vector("a","b","c").
  (1) "a"
  (2) "b"
  (3) "c"

See also topics structure(), strconcat(), changestr(), 'structures',
nameof(), varnames()


Gary Oehlert 2003-01-15