IQSS / Amelia

Amelia: A Package for Missing Data
http://gking.harvard.edu/amelia
61 stars 17 forks source link

tscsPlot() can't handle tibble objects #10

Closed mattblackwell closed 7 years ago

mattblackwell commented 7 years ago

Per an email on the amelia list from Jonathan Zadra, the following code doesn't work:

library(Amelia)
library(tibble)
data(africa)
africa <- as_tibble(africa)
a.out <- amelia(africa, ts = "year", cs = "country")
tscsPlot(a.out, cs = "Burundi", var = "trade")

We get the following error:

Error: Unsupported use of matrix or array for column indexing