我正在尝试从R中的数据帧中划分日期范围。
我正在使用的命令是
maumee952000 = maumeedata[maumeedata$Datetime..date.and.time.of.sample.collection. >= "1995-01-01" &
maumeedata$Datetime..date.and.time.of.sample.collection. <= "2000-12-31",]
但是,使用此命令将导致数据帧仅由每列下的NA值组成。我确保我的日期分类正确。
这是我的日期数据示例
> dput(maumeedata$Datetime..date.and.time.of.sample.collection.[1000:1050])
structure(c(18139, 18140, 18141, 18142, 18143, 18144, 18145,
18145, 18146, 18147, 18148, 18149, 18150, 18151, 18152, 18152,
18153, 18153, 18154, 18154, 18155, 18155, 18156, 18156, 18157,
18157, 18158, 18158, 18159, 18159, 18159, 18160, 18160, 18161,
18161, 18162, 18162, 18163, 18164, 18164, 18165, 18165, 18166,
18166, 18166, 18167, 18167, 18168, 18168, 18169, 18169), class = "Date")
任何人都可以告诉我我做错了什么,我将不胜感激。