BurlyPotatoMan
BurlyPotatoMan

Reputation: 194

Can I not view 'ts' objects in R

I recently stumbled upon a rather strange occurrence. While working with time-series data in R, I attempted to View my data like this:

View(AirPassengers)

However, it appears that I am unable to do that! No matter the time series, using the command View() does not appear to work, and instead of getting to look at the 'ts' object, I get an error informing me:

Error in View: unused argument (optional = TRUE)

Of course, I am still quite easily able to work with the data, so this really isn't that big of a deal. But I am curious as to why this may be the case!

Thanks in advance!

Upvotes: 1

Views: 80

Answers (1)

G. Grothendieck
G. Grothendieck

Reputation: 270120

I don't get an error but it is true that the times are not shown. Suggest you first start a fresh session and then try it. Also try converting it to zoo and then view it:

library(zoo)
View(as.zoo(AirPassengers))

Upvotes: 1

Related Questions