compnames(S), S a structure |
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()