View source: R/mars_data_fetch_write_functions.R
marsFetchBaroData | R Documentation |
Returns a data frame with datetime, barometric pressure, smp id, and number of neighbors interpolated from to collect the data.
marsFetchBaroData(
con,
target_id,
start_date,
end_date,
data_interval = c("5 mins", "15 mins")
)
con |
An ODBC connection to the MARS Analysis database returned by odbc::dbConnect |
target_id |
chr, single SMP ID where the user has requested data |
start_date |
string or POSIXct, format: "YYYY-MM-DD", start of data request range |
end_date |
string or POSIXct, format: "YYYY-MM-DD", end of data request range |
data_interval |
chr, |
Output will be a dataframe with four columns:
dtime |
POSIXct, format: "YYYY-MM-DD HH:MM:SS" in America/New_York |
baro_psi |
num, barometric pressure in psi |
smp_id |
chr, SMP ID for each baro |
If there are fewer than five baros to interprolate from, based on marsInterpolateBaro
marsInterpolateBaro
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.