Skip to content
Prev 301579 / 398503 Next

How to extract unique indices for time series Data?

On Sat, Jul 28, 2012 at 3:57 PM, Christofer Bogaso
<bogaso.christofer at gmail.com> wrote:
Try this:


library(quantmod)
Data1 <- Cl(getSymbols("TCS.NS", from = as.Date("2008-01-01"),
	auto.assign = FALSE))
dup <- duplicated(time(Data1), fromLast = TRUE)
z <- as.zoo(Data1[!dup])