[R] help

Tony Breyal tony.breyal at googlemail.com
Mon Dec 15 11:49:48 CET 2008


Hi Zahid,I think the following should work, though there's probably a
dozen different ways to do what you want i think:

a<-7.5
as.integer(a)
[1] 7
trunc(a)
[1] 7

Hope that helps a little,
Tony Breyal



On 15 Dec, 07:11, zahid khan <solo_... at yahoo.com> wrote:
> Dear All
> suppose that "a=7.5",if i need only integer part of "a"  that is "7" then what command i can use in R for this purpose.
>
> Zahid Khan
> Lecturer in Statistics
> Department of Mathematics
> Hazara University Mansehra.
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-h... at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list