Re: [R] need descriptive help

2012-06-05 Thread arun
-c("patient","cost")  agg3 - Original Message - From: mkm1616 To: r-help@r-project.org Cc: Sent: Tuesday, June 5, 2012 11:34 AM Subject: [R] need descriptive help Hi all, I'm new to using R, and apologize for simplicity of this question. I'm using a data

Re: [R] need descriptive help

2012-06-05 Thread mkm1616
Thank you Rui. Appreciate the help. Apologies for "badgering" the msg board. lol On Jun 5, 11:28 am, Rui Barradas wrote: > Hello, > > Try > > Total <- aggregate(cost~patient, data=x) > Total[Total$cost > 1000, ] > > As for writing to a csv file, see ?write.csv > > Hope this helps, > > Rui Barrad

Re: [R] need descriptive help

2012-06-05 Thread arun
t.org Cc: Sent: Tuesday, June 5, 2012 11:34 AM Subject: [R] need descriptive help Hi all, I'm new to using R, and apologize for simplicity of this question. I'm using a data set with over 60,000 observations, Two variables are patient ID, and cost incurred by the patient.  I'd like

Re: [R] need descriptive help

2012-06-05 Thread mkm1616
Was it really necessary to reply with sarcasm i.e. badgering the list. The point of an open community is to seek advice. i mentioned I was new to R and apologized to the community. A simple response with some guidance would be helpful. I'm looking at other posts, there are some other simple que

Re: [R] need descriptive help

2012-06-05 Thread Rui Barradas
Hello, Try Total <- aggregate(cost~patient, data=x) Total[Total$cost > 1000, ] As for writing to a csv file, see ?write.csv Hope this helps, Rui Barradas Em 05-06-2012 16:34, mkm1616 escreveu: Hi all, I'm new to using R, and apologize for simplicity of this question. I'm using a data set w

Re: [R] need descriptive help

2012-06-05 Thread Bert Gunter
1. Before you post to this list again, please read "An Introd to R" -- or other basic R tutorial. "Intro" ships with every R installation. There's a reason for this -- to avoid badgering this list with basic R queries that minimal homework could answer. 2. However, see also ?table and links therei

[R] need descriptive help

2012-06-05 Thread mkm1616
Hi all, I'm new to using R, and apologize for simplicity of this question. I'm using a data set with over 60,000 observations, Two variables are patient ID, and cost incurred by the patient. I'd like to generate frequency/table by patient and cost IF the total cost is over 2000. Right now I'm us