Title: 'Geocoordinate Validation Service'
Version: 0.0.1
Description: The 'Geocoordinate Validation Service' (GVS) runs checks of coordinates in latitude/longitude format. It returns annotated coordinates with additional flags and metadata that can be used in data cleaning. Additionally, the package has functions related to attribution and metadata information. More information can be found at https://github.com/ojalaquellueva/gvs/tree/master/api.
Depends: R (≥ 3.5.0)
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.3.2
LazyData: true
Imports: jsonlite, httr
Suggests: knitr, rmarkdown, testthat, devtools, BIEN, vcr (≥ 0.6.0)
VignetteBuilder: knitr
NeedsCompilation: no
Packaged: 2024-12-03 22:09:37 UTC; Brian Maitner
Author: Brian Maitner ORCID iD [aut, cre], Brad Boyle [aut], Rethvick Sriram Yugendra Babu [aut]
Maintainer: Brian Maitner <bmaitner@gmail.com>
Repository: CRAN
Date/Publication: 2024-12-05 18:40:18 UTC

Check the validity of coordinates

Description

GVS returns information on coordinate validity.

Usage

GVS(occurrence_dataframe, ...)

Arguments

occurrence_dataframe

A properly formatted dataframe, see gvs_testfile

...

Additional arguments passed to internal functions.

Value

Dataframe containing GVS results.

Examples



results <- GVS(occurrence_dataframe = gvs_testfile)



Get citation information

Description

Returns information needed to cite the GVS

Usage

GVS_citations(...)

Arguments

...

Additional arguments passed to internal functions.

Value

Dataframe containing bibtex-formatted citation information

Note

This function provides citation information in bibtex format that can be used with reference manager software (e.g. Paperpile, Zotero). Please do remember to cite both the sources and the GVS, as the GVS couldn't exist without these sources!

Examples

{
citation_info <- GVS_citations()
}


Get collaborator information

Description

Returns information on GVS collaborators

Usage

GVS_collaborators(...)

Arguments

...

Additional arguments passed to internal functions.

Value

Dataframe containing bibtex-formatted citation information

Examples

{
collaborator_info <- GVS_collaborators()
}


Get data dictionary

Description

Returns the GVS data dictionary

Usage

GVS_data_dictionary(...)

Arguments

...

Additional arguments passed to internal functions.

Value

Dataframe containing bibtex-formatted citation information

Examples

{
data_dictionary <- GVS_data_dictionary()
}


Get GVS metadata

Description

Returns metadata on GVS including version and citation information

Usage

GVS_metadata(bibtex_file = NULL, ...)

Arguments

bibtex_file

Optional output file for writing bibtex citations.

...

Additional arguments passed to internal functions.

Value

List containing: (1) bibtex-formatted citation information, (2) information about GVS data sources, and (3) GVS version information.

Note

This function provides citation information in bibtex format that can be used with reference manager software (e.g., Paperpile, Zotero). Please remember to cite both the sources and the GVS, as the GVS couldn't exist without these sources!

This function is a wrapper that returns the output of the functions GVS_citations, GVS_sources, and GVS_version.

Examples

{
metadata <- GVS_metadata()
}


Get information on sources used by the GVS

Description

Return metadata about the current GVS sources

Usage

GVS_sources(...)

Arguments

...

Additional arguments passed to internal functions.

Value

Dataframe containing information about the sources used in the current GVS version.

Examples

{
sources <- GVS_sources()
}


Get metadata on current GVS version

Description

Return metadata about the current GVS version

Usage

GVS_version(...)

Arguments

...

Additional arguments passed to internal functions.

Value

Dataframe containing current GVS version number, build date, and code version.

Examples

{
NSR_version_metadata <- GVS_version()
}


Check whether the internet is on

Description

Check for internet

Usage

check_internet()

Value

TRUE if internet connection is detected, FALSE otherwise.


Handle API access and format

Description

Internal function for handling accessing the API,data formatting, and errors

Usage

gvs_core(
  url = "https://gvsapi.xyz/gvs_api.php",
  mode,
  data_json = NULL,
  batches = NULL,
  skip_internet_check = FALSE
)

Arguments

url

Server URL to use. Defaults to the stable production version

mode

API mode to use.

data_json

Either NULL (the default) or properly formatted json

batches

NULL or Numeric. Optional number of batches to divide the request into for parallel processing.


Example GVS data

Description

A sample dataset showing the proper formatting of GVS inputs.

Usage

gvs_testfile

Format

A data.frame with 27 observations of 2 variables:

Latitude

Latitude, in decimal degrees

Longitude

Longitude, in decimal degrees

...

Source

https://biendata.org

mirror server hosted at Truenetwork, Russian Federation.