Dear all, I am a new user of R. I would like to know how to get fund's returns in percentage (%). For example, I use: R <- ts(read.xls("FundData"), frequency = 12, start = c(1996, 1)) Whith this program, the returns are like 0.0152699. But, I would like to have 1.52%. Please advise me about the function. Thanks! Fabrice _________________________________________________________________ [[trailing spam removed]] [[alternative HTML version deleted]]
Multiply by 100? Add R=R*100 Fabrice McShort wrote:> Dear all, I am a new user of R. I would like to know how to get fund's returns in percentage (%). For example, I use: R <- ts(read.xls("FundData"), frequency = 12, start = c(1996, 1)) Whith this program, the returns are like 0.0152699. But, I would like to have 1.52%. Please advise me about the function. Thanks! Fabrice > _________________________________________________________________ > > [[trailing spam removed]] > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch 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. > >-- Julian M. Burgos Fisheries Acoustics Research Lab School of Aquatic and Fishery Science University of Washington 1122 NE Boat Street Seattle, WA 98105 Phone: 206-221-6864
Hi Julian, Thank you very much. Please let me know how to get 2 numbers after the decim. Best regards, Fabrice> Date: Fri, 20 Jul 2007 08:15:42 -0700> From: jmburgos@u.washington.edu> To: fabricemcshort@hotmail.com> CC: r-help@stat.math.ethz.ch> Subject: Re: [R] SOS> > Multiply by 100? Add> > R=R*100> > Fabrice McShort wrote:> > Dear all, I am a new user of R. I would like to know how to get fund's returns in percentage (%). For example, I use: R <- ts(read.xls("FundData"), frequency = 12, start = c(1996, 1)) Whith this program, the returns are like 0.0152699. But, I would like to have 1.52%. Please advise me about the function. Thanks! Fabrice> > _________________________________________________________________> >> > [[trailing spam removed]]> >> > [[alternative HTML version deleted]]> >> > ______________________________________________> > R-help@stat.math.ethz.ch 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.> >> > > > -- > Julian M. Burgos> > Fisheries Acoustics Research Lab> School of Aquatic and Fishery Science> University of Washington> > 1122 NE Boat Street> Seattle, WA 98105 > > Phone: 206-221-6864> >_________________________________________________________________ [[alternative HTML version deleted]]
Hi all, Thanks for your help. Best regards Fabrice> Date: Fri, 20 Jul 2007 13:44:33 -0400> From: jrkrideau@yahoo.ca> Subject: Re: [R] SOS> To: fabricemcshort@hotmail.com; jmburgos@u.washington.edu> CC: r-help@stat.math.ethz.ch> > ?round> x <- 1.2223> round(x,2)> [1] 1.22> --- Fabrice McShort <fabricemcshort@hotmail.com>> wrote:> > > Hi Julian,> > > > Thank you very much. Please let me know how to get 2> > numbers after the decim.> > > > Best regards,> > > > Fabrice> > > > > > > > > Date: Fri, 20 Jul 2007 08:15:42 -0700> From:> > jmburgos@u.washington.edu> To:> > fabricemcshort@hotmail.com> CC:> > r-help@stat.math.ethz.ch> Subject: Re: [R] SOS> >> > Multiply by 100? Add> > R=R*100> > Fabrice McShort> > wrote:> > Dear all, I am a new user of R. I would> > like to know how to get fund's returns in percentage> > (%). For example, I use: R <-> > ts(read.xls("FundData"), frequency = 12, start => > c(1996, 1)) Whith this program, the returns are like> > 0.0152699. But, I would like to have 1.52%. Please> > advise me about the function. Thanks! Fabrice> >> >> _________________________________________________________________>> > >> > [[trailing spam removed]]> >> > [[alternative> > HTML version deleted]]> >> >> > ______________________________________________> >> > R-help@stat.math.ethz.ch 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.> >> > > > !> > -- > Julian M. Burgos> > Fisheries Acoustics> > Research Lab> School of Aquatic and Fishery Science>> > University of Washington> > 1122 NE Boat Street>> > Seattle, WA 98105 > > Phone: 206-221-6864> > > >> _________________________________________________________________> > > > > > > > [[alternative HTML version deleted]]> > > > ______________________________________________> > R-help@stat.math.ethz.ch 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.> > > > > > Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca>_________________________________________________________________ [[trailing spam removed]] [[alternative HTML version deleted]]