Re: [R] trunc function

From: Carlos Ortega <coforfe_at_gmail.com>
Date: Wed, 09 Mar 2011 10:43:47 +0100

Hola Felipe,

Sí, la función es round().

Por cierto, tenemos una lista de ayuda del R en español. Te puedes suscribir aquí:

https://stat.ethz.ch/mailman/listinfo/r-help-es

Saludos,
Carlos Ortega
www.qualityexcellence.es

On Wed, Mar 9, 2011 at 10:36 AM, Luis Felipe Parra < felipe.parra_at_quantil.com.co> wrote:

> Hello. I would like to know if there exists in R a function like trunc but
> where i can choose how many decimal places can I stay with in the number I
> have (sort of the same as the trunc function in excel). I would like, for
> example if I have the number 0.974678 and I choose to stay with 3 decimal
> places to have as ouput 0.974.
>
> Thank you
>
> Felipe Parra
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

        [[alternative HTML version deleted]]



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. Received on Wed 09 Mar 2011 - 09:48:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Mar 2011 - 10:10:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive