dbpf_location_name_exists: Check if a location name exists

View source: R/dbpf_location_exists.R

dbpf_location_name_existsR Documentation

Check if a location name exists

Description

Checks if device exists based on its serial number

Usage

dbpf_location_name_exists(con, location_name)

Arguments

con

Database connection object, retuned by dbpf_con()

location_name

Name of teh location to query

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

0 (does not exist) or 1 (does exist)

Author(s)

Stephan Gruber <stephan.gruber@carleton.ca>

Examples

## Not run: 
con <- dbpf_con()
fds <- dbpf_location_name_exists(con, "Storage")
dbDisconnect(con)

## End(Not run)

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