Skip to content

Error: k <= n is not TRUE #1151

Closed
Closed

Description

@Chingfu

When running a data set D with the following statement, I got an error message showing "Error: k <= n is not TRUE":
D[, D60:= rollapply(close, 60, mean, align='left', fill = NA), by=.(code)]

The data set has 879576 rows and 15 columns. Is there any way to fix this problem?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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