我遵循了这个示例Remove last N rows in data frame with the arbitrary number of rows,但它只删除了数据帧的最后50行,而不是数据帧中每个研究站点的最后我有一个非常大的数据集,它有多个研究地点,每个研究地点都有多个深度,每个深度都有营养物质的浓度。 我只想删除每个桩号的最后50行深度。例如,站点1有250个深度,站点2有1000个深度,站点3有150个深度 但要保持所有其他
嗨,在那里,我在互联网上看到什么是错误的,na.omit()函数没有删除与NA的行。你能帮帮我吗?with the data and (optionally) maintain the date as an index
Data$rsi44 <- data.frame(RSI(Cl(Data), n=44))
DatanoNA <- na.omit(Data) #remove