[R] Odp: help

Petr PIKAL petr.pikal at precheza.cz
Wed Jan 14 16:22:06 CET 2009


Hi

r-help-bounces at r-project.org napsal dne 14.01.2009 14:34:14:

> Dear ALL
> suppose "x=7.5",and i need of only integer part of variable "x" that is 
"7" 
> only then what command i can use in R.

If you looked at help page for integer you would quickly find links to

trunc, round, floor, ceiling which could be used to get some kind of 
integer value, depending on what you want to do with them.

probably trunc(x)

Regards
Petr


> THANKS
> 
> Zahid Khan
> Lecturer in Statistics
> Department of Mathematics
> Hazara University Mansehra.
> 
> 
> 
>    [[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.




More information about the R-help mailing list