Skip to content

“NAs introduced by coercion” #4

@JohnTaco93

Description

@JohnTaco93

Hi, when I run the code, the following error appears;
Error in starting_period:nrow(sales_train): NA/NaN argument
Warning message in eval(expr, envir, enclos):
“NAs introduced by coercion”

I think this is the line that has problems:
sales_train <- as.numeric(ex_sales[,6:ncol(ex_sales)])

I changed it to:
sales_train <- as.numeric(ex_sales[,7:ncol(ex_sales)])

But I'm not sure if it's ok to make this change.

Thanks and Regards,
John Taco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions