Author Login
Post Reply
Hello folks:
I have a data frame which includes two numeric vectors: "Pa1" and "Ingr" (which represents income). I run the following code on the R console:
ingreso <- factor(ifelse(Ingr<=3000,"bajo","alto"))
tapply(Pa1,ingreso,summary)
boxplot(Pa1~ingreso)
and it works fine. However, when I "Sweave" through an rnw file containing that code, R gives me the following error:
Error: chunk 19 (label=cod3.19)
Error in object[[i]] : object of type 'closure' is not subsettable
What's going on here?
Thanks in advance,
jlrp
[[alternative HTML version deleted]]
______________________________________________
R-help@(protected)
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.