Skip to content
Prev 343482 / 398525 Next

Issue with formula conversion

do you have control over the external source?

if so, then something like

BlockFunction <- "pdComSymm"
ranEff1 <- "~Variety -1"

fm <- lme(yield ~ nitro, data=Oats,
random=list(Block=get(BlockFunction)(ranEff1)))

The above is untested.  An example if get() is
[1] 10

The main problem with David's solution, which does work, is the use
of the eval(parse()) idiom.  This is usually strongly discouraged.  See, for
example,
If the answer is parse() you should usually rethink the question.
   -- Thomas Lumley
      R-help (February 2005)
On Wed, Aug 27, 2014 at 4:11 PM, Gang Chen <gangchen6 at gmail.com> wrote: