Skip to content
Prev 280310 / 398506 Next

Am I misunderstanding loop variable assignment or how to use print()?

Hi,

An anova object is stored in anova.ag.m2529.az.

But "anova.ag.m2529.az"  is a character string that happens to be the
*name* of an anova object, but R has no way to know that unless you
specifically tell it that your character string is an object by using
get().

Something like print(get(x)) would work.

It's often neater and more efficient to store your anova objects in a
list, though.

Sarah
On Thu, Dec 15, 2011 at 9:30 AM, Tony Stocker <akostocker at gmail.com> wrote: