[R] Parse error in xtabs

About this list Date view Thread view Subject view Author view

From: Andrew Perrin (aperrin@socrates.berkeley.edu)
Date: Wed 04 Apr 2001 - 06:08:06 EST


Message-ID: <Pine.LNX.4.21.0104031502240.13603-100000@nujoma.perrins>

Greetings-

Using R 1.2.2 under linux, I get the following:
> l.agg<-xtabs(cbind(r.logic.interests, r.logic.morality,
+ r.logic.enlightened, r.logic.capacity,
r.logic.mediate)
+ ~ grouptype,
+ data=gt)
Error in parse(file, n, text, prompt) : parse error

I know the data are structured fine, as I can use all the elements in
individual xtabs() calls such as the one below:

> l.agg<-xtabs(cbind(r.logic.morality,r.logic.capacity) ~ grouptype,
data=gt)
> summary(l.agg)
Call:
xtabs(formula = cbind(r.logic.morality, r.logic.capacity) ~ grouptype,
    data = gt)
Number of cases in table: 693
Number of factors: 2
Test for independence of all factors:
        Chisq = 5.447, df = 4, p-value = 0.2444

Any advice?

Thanks.

----------------------------------------------------------------------
Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology
(Soon: Asst Professor of Sociology, U of North Carolina, Chapel Hill)
andrew_perrin@unc.edu - http://www.unc.edu/~aperrin

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:38 EST