read_GGA: Function to get data from a sql database

View source: R/read_GGA.R

read_GGAR Documentation

Function to get data from a sql database

Description

get data from a sql database. A specific time period can be selected

Usage

read_GGA(
  db.name = "GGA.db",
  table.name = "micro",
  datelim = NULL,
  cols = "*",
  sqlpath = sqlpfad,
  ggapath = ggapfad
)

Arguments

db.name

name of the database for "dynament.db" either "dynament_test" or "samplerx" for "GGA.db" either "gga" or "micro"

table.name

name of the table in the database

datelim

limits of the time period that is loaded as character or POSIXct if all Data should be loaded datelim = NULL

cols

names of the colums that will be loaded. default is all colums: cols = "*"

sqlpath

path to the database

Value

data.frame

Examples

#Zeitrahmen festlegen
datelim<-c("2020-01-15 10:00:00","2020-01-21 10:00:00")

#read_db anwenden
dynament_raw<-read_db("dynament.db","dynament_test",datelim,korrektur_dyn=F)
GGA<-read_db("GGA.db","micro",datelim,"CO2,CO2dry")

laurin-f/pkg.WWM documentation built on July 19, 2023, 12:04 a.m.