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
It would be nice to count the number of rows in a
duckspatial_dfby simply using base Rnrow(). Currently it returnsNA. Counting the number of columns withncol()works fine.