[R] SOS

John Kane jrkrideau at yahoo.ca
Fri Jul 20 19:44:33 CEST 2007


?round
x <- 1.2223
round(x,2)
[1] 1.22
--- Fabrice McShort <fabricemcshort at 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 at u.washington.edu> To:
> fabricemcshort at hotmail.com> CC:
> r-help at 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 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> > 
>
_________________________________________________________________
> 
> 
> 
> 	[[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.
>



More information about the R-help mailing list