generated from DS4PS/cpp-525-sum-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I am having issues working with the data when brought into markdown. It is brought in as a list and seems like it needs to be another format to run the time series model. I have tried a few different ways:
p2 <- as.data.frame(passengers)
p3 <- as.numeric(as.character(unlist(passengers[1:365])))
But I still get this error when I try to run the time series model:
Error in model.frame.default(formula = p3 ~ time + treatment + timesince, : invalid type (list) for variable 'time'
I feel as if I am missing something potentially simple but haven’t been able to formulate and search the right questions to figure this out. Any help would be appreciated.
Thanks,
Nick
Metadata
Metadata
Assignees
Labels
No labels