Skip to content

Lab 1 Data Type Issue #20

@nerea88

Description

@nerea88

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions