Skip to content

Error : Unsupported index type: list #1

@cregouby

Description

@cregouby

Hello,

Explore_dataset function seems very promising, It would be great to support lists in the 'explore_dataset' function, at least covering the standard dataset that are now included in dplyr :

library(dplyr)
explore_dataset(starwars)
[1] "Data has 87 rows and 13 columns"
Errorr : Unsupported index type: list

as well as

library(dataset)
explore_dataset(swiss)
[1] "Data has 47 rows and 6 columns"
Error in .subset(x, j) : type 'list' d'indice incorrect

A workaround may be available : turn the dataframe into data.table

library(data.table)
explore_dataset(storms %>% as.data.table)
[1] "Data has 10010 rows and 13 columns"
[[1]]
   name year month day hour lat long status category wind pressure ts_diameter hu_diameter
1:  198   41    10  31   24 403  856      3        7   31      124         109          35

[[2]]

Maybe a dataset type test and some conditional transformation into data.table could ease to solve it ?
Thanks for your efforts !
Best Regards,
C.R.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions