glucose_df_from_db: Read from database a dataframe of glucose values for user_id...

Description Usage Arguments Value

View source: R/read_data_utils.R

Description

Reads from the current default database the glucose values for user_id ID.

Usage

1
2
3
4
5
6
glucose_df_from_db(
  conn_args = config::get("dataconnection"),
  user_id = 1234,
  from_date = as_datetime("2000-01-01", tz = Sys.timezone()),
  db_filter = NULL
)

Arguments

conn_args

valid database connection

user_id

ID for a specific user in the database.

from_date

a string representing the date from which you want to read the glucose values

db_filter

A function for filtering the database. Use instead of from_date or user_id

Value

a dataframe (tibble) with the full Libreview results since fromDate for user_id


personalscience/psi-shiny-cgm documentation built on Dec. 22, 2021, 7:43 a.m.