dbpf_locations: Return table of locations, either points or polygons.

View source: R/dbpf_locations.R

dbpf_locationsR Documentation

Return table of locations, either points or polygons.

Description

Basic information on permafrost database @ Carleton University

Usage

dbpf_locations(con, pattern, type = "point")

Arguments

con

Database connection object, as returned by dbpf_con

pattern

(optional) A regular expression used to filter returned values by name

type

Identifies the geometry type for which locations are returned. The default is 'point', otherwise set type='polygon'. [character]

Details

These simple functions return all data as data frames. When making a query many times, optimise the SQL statement to only request the data you actually need.

Value

Data frame of all [point / polygon] locations in DB

Author(s)

Stephan Gruber <stephan.gruber@carleton.ca>

Examples

## Not run: 
con <- dbpf_con()
loc <- dbpf_locations(con)

## End(Not run)

geocryology/PermafrostDB documentation built on April 17, 2025, 11:54 a.m.