Does a dataset contain geospatial features?

is_geo(x)

# S3 method for metadata
is_geo(x)

# S3 method for tbl_df
is_geo(x)

# S3 method for character
is_geo(x)

Arguments

x

A metadata object obtained by sal_get_metadata(), a tibble obtained via sal_get_dataset(), or a character representing a dataset_id.

Value

logical, whether a dataset is annotated as containing geospatial features.

Methods (by class)

  • metadata: Method to check if a metadata object obtained via sal_get_metadata() references a dataset that is_geo().

  • tbl_df: Method to check if a tibble obtained via sal_get_dataset() references a dataset that is_geo().

  • character: Method to check if a character representing a dataset_id references a dataset that is_geo().

Examples

library(salinasr) is_geo("bikeways")
#> [1] TRUE
sal_get_metadata("bikeways") %>% is_geo()
#> [1] TRUE
sal_get_metadata("bikeways") %>% sal_get_dataset() %>% is_geo()
#> [1] TRUE