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_...@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...@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. ______________________________________________ R-help@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.