On 11/4/2008 9:15 AM, Sarah Goslee wrote:
I'm sure there are a variety of ways around this. My chosen solution
is to replace
mydata$somevar
with
mydata[, "somevar"]
Sarah
You should almost never need to modify valid R code to work with Sweave.
(There are a few exceptions: code that illustrates errors, or code
that requires interaction with a user, etc.)
There's nothing wrong with including mydata$somevar in an Sweave code chunk.
Duncan Murdoch
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.