is_geo: Does a dataset contain geospatial features?

Description Usage Arguments Value Methods (by class) Author(s) Examples

View source: R/utils.R

Description

Does a dataset contain geospatial features?

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
is_geo(x)

## S3 method for class 'metadata'
is_geo(x)

## S3 method for class 'tbl_df'
is_geo(x)

## S3 method for class '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)

Author(s)

Brendan Knapp brendan.g.knapp@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(salinasr)

is_geo("bikeways")

sal_get_metadata("bikeways") %>% 
  is_geo()
  
sal_get_metadata("bikeways") %>% 
  sal_get_dataset() %>% 
  is_geo()

knapply/salinasr documentation built on May 27, 2019, 2:09 p.m.