fetch_data_v2: Fetch data from databases

fetch_data_v2R Documentation

Fetch data from databases

Description

Fetches data from the bxxx databases.

Usage

fetch_data_v2(con, box = NA, from = NA, to = NA)

Arguments

con

A connection as established e.g. by dbcon()

box

The box number for which the data should be fetched.

from

From which point onwards should the data be fetched? Can be a date-time object or an r_pk (column r_pk from the bxxx tables)

to

Until which point should the data be fetched? Can be a date-time object or an r_pk (column r_pk from the bxxx tables)

Value

A data.table with all the information from the bxxx table, and an additional box column. Any rows where the column datetime_ is NA are removed.

Examples

#Not run
#see help of function events_v2
?events_v2()

mpio-be/SNB2 documentation built on Sept. 17, 2024, 4:27 p.m.