print(i).Arms is not valid R syntax. Did you mean print(i.Arms) ? Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com
> -----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 coming, can anyone help? > > 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 No of Arms in Trial_level_info and > print(i) sheet", > Trial.Arms, print(i).Arms, "Trial level sheet", "print(i) sheet") > } > > Error: unexpected symbol in: > "i.Arms<- paste(y$Var1, y$Freq, sep="_") > Print_Message("Check for the Total No of Arms in Trial_level_info and > print(i) sheet", > Trial.Arms, print(i).Arms" > Visit us at Booth No. 5 at 2012 ChemOutsourcing Conference, 10-13 Sept 2012, > Ocean > Place Resort - Long Branch, NJ, United States > > Visit us at Booth No. 4 at World Conference on Pharmacometrics, 5-7 Sept > 2012, Grand > Hilton Hotel, Seoul, Korea > ________________________________ > Notice: The information contained in this electronic mail message is intended > only for > the use of the designated recipient. This message is privileged and > confidential. and the > property of GVK BIO or its affiliates and subsidiaries. If the reader of this > message is not > the intended recipient or an agent responsible for delivering it to the > intended recipient, > you are hereby notified that you have received this message in error and that > any review, > dissemination, distribution, or copying of this message is strictly > prohibited. If you have > received this communication in error, please notify us immediately by > telephone +91-40- > 66929999<tel:%2B91-40-66929999> and destroy any and all copies of this > message in > your possession (whether hard copies or electronically stored copies). > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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@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.