update_database: Update database with data contained in the specified labdat...

View source: R/handle_database.R

update_databaseR Documentation

Update database with data contained in the specified labdat file

Description

Update database with data contained in the specified labdat file

Usage

update_database(
  path_to_labdat_file,
  path_to_db_file,
  path_to_db_dates_file,
  path_to_parameters,
  file_sheet_year = NULL
)

Arguments

path_to_labdat_file

string. Full path (from root directory) to the lab data file to be inserted into the database file

path_to_db_file

string. Full path (from root directory) to the .csv database file if it exists, and desired path to a .csv database file if it does not exist

path_to_db_dates_file

string. Full path (from root directory) to the .csv database dates file if it exists, and desired path to a .csv database dates file if it does not exist

path_to_parameters

string. Full path (from root directory) to the .xlsx file that contains the desired parameters and associated info (station, units, corrected units...)

file_sheet_year

numeric. The year of the labdata file of interest

Value

dataframe containing the processed lab data that has been newly inserted into the database file


biogeochem/bpwtpR documentation built on May 6, 2024, 5:17 p.m.