marsCheckSMPSnapshot: Check if a data snapshot for an SMP exists

View source: R/mars_data_fetch_write_functions.R

marsCheckSMPSnapshotR Documentation

Check if a data snapshot for an SMP exists

Description

Returns a data frame with requested snapshot date, SMP ID, OW suffix, and SMP snapshot

Usage

marsCheckSMPSnapshot(con, smp_id, ow_suffix, request_date)

Arguments

con

An ODBC connection to the MARS Analysis database returned by odbc::dbConnect

smp_id

vector of chr, SMP ID, where the user has requested data

ow_suffix

vector of chr, OW Suffix, where the user has requested data

request_date

single date or vector the length of SMP ID, either "YYYY-MM-DD" or "today", of the request data

Value

vector of boolean outcomes,

snapshot_present

bool, TRUE or FALSE value based on whether a snapshot can exist or is made


taywater/pwdgsi documentation built on April 19, 2024, 11:10 a.m.