Re: [R] Why the error is coming, can anyone help?

2012-09-07 Thread Jeff Newmiller
@r-project.org] On Behalf >> Of Sri krishna Devarayalu Balanagu >> Sent: Wednesday, September 05, 2012 11:54 PM >> To: r-help@r-project.org >> Subject: [R] Why the error is coming, can anyone help? >> >> Hi everyone >> Can anyone help? >> >>

Re: [R] Why the error is coming, can anyone help?

2012-09-07 Thread Jim Holtman
-Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On >> Behalf >> Of Sri krishna Devarayalu Balanagu >> Sent: Wednesday, September 05, 2012 11:54 PM >> To: r-help@r-project.org >> Subject: [R] Why the error is

Re: [R] Why the error is coming, can anyone help?

2012-09-07 Thread Sri krishna Devarayalu Balanagu
@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Sri krishna Devarayalu Balanagu > Sent: Wednesday, September 05, 2012 11:54 PM > To: r-help@r-project.org > Subject: [R] Why the error is coming, can anyone help? > > Hi everyone > Can anyone help?

Re: [R] Why the error is coming, can anyone help?

2012-09-06 Thread William Dunlap
anagu > Sent: Wednesday, September 05, 2012 11:54 PM > To: r-help@r-project.org > Subject: [R] Why the error is coming, can anyone help? > > Hi everyone > Can anyone help? > > x = c("Treatment", "Planned", "Actual", "Demographics", "Out

Re: [R] Why the error is coming, can anyone help?

2012-09-06 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Sri krishna Devarayalu Balanagu > Sent: Thursday, September 06, 2012 8:54 AM > To: r-help@r-project.org > Subject: [R] Why the error is coming, can an

Re: [R] Why the error is coming, can anyone help?

2012-09-06 Thread Berend Hasselman
On 06-09-2012, at 08:54, Sri krishna Devarayalu Balanagu wrote: > Hi everyone > Can anyone help? > > x = c("Treatment", "Planned", "Actual", "Demographics", "Outcomes") > for (i in x) { > df <- paste(i)[, c("Reference_ID", "Arm_ID")] > unique(df) -> uniq > as.data.frame(table(uniq$Reference_ID))

Re: [R] Why the error is coming, can anyone help?

2012-09-06 Thread jim holtman
What did you expect 'print(i).Arms' to do? This is causing part of the problem since the syntax is not correct. Also what does 'paste(i)[, c("Reference_ID", "Arm_ID")]' do? Does not seem correct since 'paste' does not return a matrix. On Thu, Sep 6, 2012 at 2:54 AM, Sri krishna Devarayalu Bala

[R] Why the error is coming, can anyone help?

2012-09-06 Thread Sri krishna Devarayalu Balanagu
Hi everyone Can anyone help? x = c("Treatment", "Planned", "Actual", "Demographics", "Outcomes") for (i in x) { df <- paste(i)[, c("Reference_ID", "Arm_ID")] unique(df) -> uniq as.data.frame(table(uniq$Reference_ID)) -> y i.Arms<- paste(y$Var1, y$Freq, sep="_") Print_Message("Check for the Total N