On Nov 26, 2009, at 12:17 AM, David Winsemius wrote:
On Nov 25, 2009, at 9:54 PM, Michael Ash wrote:
I remain confused by the difference between
library(MASS)
data(Cars93)
as
.data
.frame
(tapply
(Cars93
$Price,list(Cars93$Origin,Cars93$AirBags,Cars93$Passengers),median))
as
.data
.frame
.
On Nov 25, 2009, at 9:54 PM, Michael Ash wrote:
I remain confused by the difference between
library(MASS)
data(Cars93)
as
.data
.frame
(tapply
(Cars93
$Price,list(Cars93$Origin,Cars93$AirBags,Cars93$Passengers),median))
as
.data
.frame
.table
(tapply
(Cars93
$Price,list(Cars93$Origin,Cars93$A
I remain confused by the difference between
library(MASS)
data(Cars93)
as.data.frame(tapply(Cars93$Price,list(Cars93$Origin,Cars93$AirBags,Cars93$Passengers),median))
as.data.frame.table(tapply(Cars93$Price,list(Cars93$Origin,Cars93$AirBags,Cars93$Passengers),median))
I clearly want the latter,
On Nov 25, 2009, at 4:11 PM, Michael Ash wrote:
Dear all,
This seems to be working, but I'd like to make sure that I'm not doing
anything wrong.
I am using by() to construct a complicated summary statistic by
several factors in my data (specifically, the 90-50 income ratio by
city and race).
Dear all,
This seems to be working, but I'd like to make sure that I'm not doing
anything wrong.
I am using by() to construct a complicated summary statistic by
several factors in my data (specifically, the 90-50 income ratio by
city and race).
cityrace.by <- by(microdata, list(microdata$city,mi
5 matches
Mail list logo