在 R 数据帧中添加时间

adding time in R dataframe

这个问题和这个类似post 但有什么具体的。 假设我创建数据框

a=9658
b=9658
e=9658
d=9658
dat=cbind(a,b,e,d)

the result
            a         b            e           d
1        9658        9658         9658      9658

我需要用创建数据的日期创建新的列

I.E输出

   a   b       e   d    dateload
  9658 9658 9658 9658   01.10.2018 00:00

在 sql 这个函数调用 getdate()

Sys.time() 会给你这个。

希望对您有所帮助。