Skip to content

time column issue in transform_data() #1

Description

@glitt13

I'm unable to run transform_data() successfully. Running line-by-line, the final line before returning data fails at:

data <- tsibble::as_tsibble(data, index = time_col, regular = regular)

The error states that there are multiple columns named time in data.

I believe this is caused by the following line:
data <- cbind(data, neg_der_log_bounded, time)

I suggest the following, which avoids binding the time column which is already contained in data:
data <- cbind(data, neg_der_log_bounded)

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