R语言中round()函数的使用

round(timeDate)
round()所属R语言包:timeDate

                                        Rounding and Truncating 'timeDate' Objects
                                         四舍五入和截断TIMEDATE对象的

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Rounds and truncates objects of class 'timeDate'.  
轮和截断对象的类的TIMEDATE“。


用法----------Usage----------


## S3 method for class 'timeDate'
round(x, digits = c("days", "hours", "mins")) 

## S3 method for class 'timeDate'
trunc(x, units = c("days", "hours", "mins"), ...)     



参数----------Arguments----------

参数:digits, units
a character string denoting the date/time units in which the  results are desired.     
一个字符串,表示该结果所需的日期/时间单位。


参数:x
an object of class timeDate.    
对象类timeDate。


参数:...
arguments passed to other methods.  
参数传递给其他方法。


值----------Value----------

The two functions round and trunc allow to round or to  truncate timeDate objects to the specified unit and return them as timeDate objects. - Note, ther is an inconsistency round uses digits as argument and not units. 
这两个函数round和trunc让四舍五入或截断timeDate对象到指定的单位和他们timeDate对象返回。 - 请注意,进一步不一致的round使用digits作为参数,而不是units,。


实例----------Examples----------


## round - [#圆 - ]

## truncate -[#截断 - ]


阅读更多

没有更多推荐了,返回首页