Re: [R] decimal values

From: Schmitt, Corinna <>
Date: Fri, 04 May 2007 15:25:16 +0200


just look ?round. It should help.


-----Ursprüngliche Nachricht-----
Von: [] Im Auftrag von elyakhlifi mustapha Gesendet: Freitag, 4. Mai 2007 14:59
Betreff: [R] decimal values

how can I do to drop decimal after the comma please for example for tthis line

> print(P)

[1] 62.000000 1.000000 7.661290 5.200000 17.100000 2.318801

how canI do to keep only 62 1 7.66 5.2 17.1 2.32 thanks

ble contre les messages non sollicités

        [[alternative HTML version deleted]] mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 04 May 2007 - 13:35:36 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 Fri 04 May 2007 - 14:31:43 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.