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.
请运行下面的代码:“patients$time”列给出了时间戳。我想获取两次之间的所有记录,例如第一行值“2017-01-02 11:41:53”和第 226 行值“2017-08-07 09:06:07”。我想基本上得到这两次之间的所有记录。我尝试了 dbGetquery,但出现错误。请帮忙。
library(bupaR) patients
尝试这个:
patients[patients$time > '2017-01-02 11:41:53' & patients$time < '2017-08-07 09:06:07',]