Hi, I need kind help from you. I'm doing my assignment in IR and need to do script in R programming and using R studio tool.I don't have any knowledge in R but learning by Youtube. After so long,i successfully came out with below script for precision 10(P@) But i don know how to do loop for 105 system. below script was for 5 system but i define it ?one by one.Can you help me ? -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: P at 10.txt URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20131023/38b9aff7/attachment.txt>
As the Posting Guide ( http://www.R-project.org/posting-guide.html) indicates, this is not a homework help forum. Please use the resources provided by your educational institution for assistance. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. THIRU MANIAM <thiru_maniam2000 at yahoo.com> wrote:>Hi, >I need kind help from you. I'm doing my assignment in IR and need to do >script in R programming and using R studio tool.I don't have any >knowledge in R but learning by Youtube. After so long,i successfully >came out with below script for precision 10(P@) >But i don know how to do loop for 105 system. below script was for 5 >system but i define it ?one by one.Can you help me ? > > >------------------------------------------------------------------------ > >______________________________________________ >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.
Hi I am a little bit curious how efficient can Youtube be in learning statistics. My understanding was that it is mainly for entertainment. However statistics can be also entertainment, especially considering R. Anyway R-intro and help pages for functions are probably better source for serious learning. And if you decided to read R-intro have a look at Posting guide too. Petr> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of THIRU MANIAM > Sent: Wednesday, October 23, 2013 12:52 PM > To: r-help at R-project.org > Subject: [R] Loop for R > > Hi, > I need kind help from you. I'm doing my assignment in IR and need to do > script in R programming and using R studio tool.I don't have any > knowledge in R but learning by Youtube. After so long,i successfully > came out with below script for precision 10(P@) But i don know how to > do loop for 105 system. below script was for 5 system but i define it > ?one by one.Can you help me ?
On 10/23/2013 09:51 PM, THIRU MANIAM wrote:> Hi, > I need kind help from you. I'm doing my assignment in IR and need to do script in R programming and using R studio tool.I don't have any knowledge in R but learning by Youtube. After so long,i successfully came out with below script for precision 10(P@) > But i don know how to do loop for 105 system. below script was for 5 system but i define it one by one.Can you help me ? >Hi Thiru, Anyone who can learn statistics on YouTube instead of watching cat videos deserves at least a hint, even for homework. You want to loop over systems as you have done starting with this: ########################### #start system Number 1# ########################## systemNumber=1 systemName="input.acsys9mw0" systemFilePath="D:\\UM Studies_Master_MCS\\Semester_2\\WMGA6320_Special Topics In IS\\Group_Project\\input.acsys9mw0" Without looking too carefully at the code, I see the three things above that differentiate the systems. I assume that your systems are numbered 1 to 105. Somewhere there will be the 105 system names that you want to run. If they happen to be in a character vector, you could think about picking them off one by one using the system number. systemFilePath looks the same every time except for the systemName tacked on the end. Think about the paste function. So, if you can index your loop with systemNumber, set systemName using that number and paste systemName onto a constant file path, I think you've got it. All this without having to watch me talking to a video camera. Jim