Skip to content
Back to formatted view

Raw Message

Message-ID: <CAHmzXO7DNwLne_1epBVPAyTvZs464W2SEhT6QVCPBO-h0V=ZWg@mail.gmail.com>
Date: 2014-08-27T18:19:11Z
From: Gang Chen
Subject: Issue with formula conversion

A random effect formulation for R package nlme is read in as a string
of characters from an input file:

ranEff <- "pdCompSymm(~1+Age)"

I need to convert 'ranEff' to a formula class. However, as shown below:

> as.formula(ranEff)
~1 + Age

the "pdCompSymm" is lost in the conversion. Any solutions? Thanks!

Gang