Re: [R] (no subject)

From: Petr PIKAL <petr.pikal_at_precheza.cz>
Date: Thu, 13 Nov 2008 12:19:29 +0100

"Kurapati, Ravichandra \(Ravichandra\)" <ravichandra.kurapati_at_alcatel-lucent.com> napsal dne 13.11.2008 11:37:58:

> But I observed that it was throwing an error.

Really. If what you send is all your data then the problem is that EVDO_Rev is all NA. The problem is in your data, change your data and you will get result not an error.

Mind reading is difficult task and if you do not specify an error you got it is hard to evaluate what may be the problem.

Regards
Petr

>
> -----Original Message-----
> From: Petr PIKAL [mailto:petr.pikal_at_precheza.cz]
> Sent: Thursday, November 13, 2008 4:06 PM
> To: Kurapati, Ravichandra (Ravichandra)
> Cc: r-help_at_r-project.org
> Subject: Odp: [R] (no subject)
>
> Hi
>
> r-help-bounces_at_r-project.org napsal dne 13.11.2008 10:51:39:
>
> > Hi,
> >
> >
> >
> > Browse[1]> d4
> >
> > EVDO_Rev Session_Setup FCA bin counts
> >
> > 50 NA 0 5 1 1
> >
> > 51 NA 0 5 2 1
> >
> > 52 NA 0 5 3 1
> >
> > 53 NA 0 5 4 1
> >
> > 54 NA 0 5 5 1
> >
> > 55 NA 0 5 6 1
> >
> > 56 NA 0 5 7 1
> >
> > 57 NA 0 5 8 1
> >
> > 58 NA 0 5 9 1
> >
> > 59 NA 0 5 10 1
> >
> > 60 NA 0 5 11 1
> >
> >
> >
> >
> >
> > ######## #logic for merging rows with FCA 4,5,6 into 4
> >
> > d4n <- aggregate(d4[,c("counts")], by=list(bin = d4$bin,
> > EVDO_Rev=d4$EVDO_Rev, Session_Setup=d4$Session_Setup),sum)
> >
> >
> >
> >
> > does the above instruction works or not ,if not why
>
> Yes it works, why it shall not work? The question is if it do what you
> expect to do. Your command sums counts which belongs to same bin,
> EVDO_Rev
> and Session_Setup, if it is what you want.
>
> If by chance you want to sum counts which have FCA 4, 5 or 6 then
>
> by = list (FCA = FCA %in% c(4,5,6)
>
> could be one option.
>
> Regards
> Petr
>
>
> >
> >
> >
> > Thanks
> >
> > K.Ravichandra
> >
> >
> >
> >
> >
> >
> > [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help_at_r-project.org 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_at_r-project.org 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 Thu 13 Nov 2008 - 11:23:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 13 Nov 2008 - 11:30:24 GMT.

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

list of date sections of archive