Re: [R] aggregate example : where is the state.region variable?

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Tue 22 Aug 2006 - 04:34:57 EST

Its not part of state.x77. Its a completely separate variable. Try ls("package:datasets") and notice its in the list or try ?state.region and note that its a variable in datasets.

On 8/21/06, John Kane <jrkrideau@yahoo.ca> wrote:
> I was looking ?aggregate and ran the first example
>
> aggregate(state.x77, list(Region = state.region),
> mean)
>
> The variables in state.x77 appear to be :
> > state.x77
> Population Income Illiteracy Life Exp Murder HS Grad
> Frost Area
>
> Where is the "state.region" variable coming from?
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>



R-help@stat.math.ethz.ch 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. Received on Tue Aug 22 04:51:13 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 22 Aug 2006 - 14:22:26 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.