Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚遇到了一个问题,我想在时间对象中添加时间,但是标准的东西(colSums, sum, rowSums)不起作用。
colSums
sum
rowSums
所以我有
time<-c("00:00:01", "01:02:00", "09:30:01", "14:15:25") library(chron) x <- chron(times=time) x [1] 00:00:01 01:02:00 09:30:01 14:15:25
我现在怎样才能把所有时间都加起来x?
x
sum(x)很适合我
sum(x)
sum(x) Time in days: [1] 1.032951