Skip to content
Prev 315459 / 398503 Next

equivalent code that doesn't return same results?

Replace
    eval(parse(text=paste("dataset", IVcat[k], sep="$")))
with
    dataset[[ IVcat[k] ]]
everywhere.

This works because
    object$componentName
is the same as
    object[[ "componentName" ]]
and the "[[" version lets you use a variable for the name of the component.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com