Skip to content

nrow() in duckspatial_df #131

Description

@rafapereirabr

It would be nice to count the number of rows in a duckspatial_df by simply using base R nrow(). Currently it returns NA. Counting the number of columns with ncol() works fine.

library(duckspatial)

# Load polygon data
countries_ddbs <- ddbs_open_dataset(
  system.file("spatial/countries.geojson", package = "duckspatial")
  )

ncol(countries_ddbs)
#> 8

nrow(countries_ddbs)
#> NA

dim(countries_ddbs)
#> NA  8

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