I don't have R on this machine to check but are you sure that sc_recov still
exists in s.all?
Otherwise do str(s.all) and see what the object looks like.
--- On Wed, 10/1/08, Michael Just <[EMAIL PROTECTED]> wrote:
> From: Michael Just <[EMAIL PROTECTED]>
> Subject: [R
Hello,
I used the aggregate function with success on my data frame "all".
> aggregate(all, list(sc_recov), mean)
I then made a subset of this data frame:
>s.all <-subset(all, select= c(3,4,5,6,7,8,9,10,11,23))
but when I tried to to run the aggregate function on this subset:
> aggregate(s.all,
2 matches
Mail list logo