Skip to content

Spectrogram returns this error: Error in seq.default(from = d[1, t], to = d[.N, t], by = 1/resample_rate) : wrong sign in 'by' argument #18

@masterofmolerats

Description

@masterofmolerats

Hi, I'm working with activity data. I've tried to match the data structure like the examples, and I worked with similar data with no issues. But now i get the error "Error in seq.default(from = d[1, t], to = d[.N, t], by = 1/resample_rate) :
wrong sign in 'by' argument" when doing
spec = spectrogram(activ, active_behavr, period_range = c(hours(1), hours(28)))

my data is a behavr type, activ is binary values, my data has a t column with time from start in seconds. Any help would be appreciated.

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