Skip to content

panel and data.table doesn't allow printing of data - Error: 'idx' is not found in calling scope #610

@andrewbaxter439

Description

@andrewbaxter439

All works behind the scenes, but the panel setup of the data.table doesn't print to show contents:

library(fixest)

data(base_did)
base_dt <- data.table::as.data.table(base_did)

# Setting a data set as a panel...
pdat = panel(base_dt, ~id+period)

pdat
#> Error in `[.data.table`:
#> ! 'idx' is not found in calling scope and it is not a column name either. When the first argument inside DT[...] is a single symbol (e.g. DT[var]), data.table looks for var in calling scope.

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