我的两个数据帧如下所示:
dput(SB6)
structure(list(shf_htr_resstnc_SB1_1 = c(99.7, 99.7, 99.7, 99.7,
99.7), shfp_wrnng_SB1_1_1_1_1 = c(NaN, NaN, NaN, NaN, NaN), rDate = structure(c(1650988800,
1650990600, 1650992400, 1650994200, 1650996000), class = c("POSIXct",
"POSIXt"), tzone = "")), row.names = 7566:7570, class = "data.frame")
dput(SB6.1)
structure(list(shf_htr_resstnc_SB1_1 = c(99.7, 99.7, 99.7, 99.7,
99.7), shfp_wrnng_SB1_1_1_1_1 = c(NaN, NaN, NaN, NaN, NaN), rDate = structure(c(1651620600,
1651622400, 1651624200, 1651626000, 1651627800), class = c("POSIXct",
"POSIXt"), tzone = "")), row.names = 5:9, class = "data.frame")
我想要rbind
两个数据帧,并在它们之间插入时间间隔.SB6以2022-04-26 18:00:00结束,SB6.1以2022-05-03 22:30:00开始.请注意,时间戳是30分钟内的30分钟.在这段时间间隔内,变量应该填满NaN
.
任何帮助都将不胜感激.