Skip to content
Prev 313998 / 398506 Next

Filling Lists or Arrays of variable dimensions

If you really want to use the nested lists and use things like
   lst[[ c("high", "north", "unmarried") ]] <- value
when lst[["high"]] or lst[["high"]][["north"]] does not exist,
then I think you will have to make a class that does this.

Another advantage of writing a class is that it could be rewritten
to implement a more efficient data structure and you would not
have to rewrite any other code.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com