Skip to contents

This function appends new strains to the 'strain' table in the database.

Usage

append_study_to_db(
  title,
  short_code,
  description,
  lead_person,
  is_longitudinal,
  database
)

Arguments

database

The path to the SQLite database.

user_file

A data frame containing a column named 'strain'.

Value

A boolean indicating success (TRUE) or failure (FALSE).

Examples

# Assuming you have a data frame named user_data with a strain column and a valid SQLite database at "/path/to/db"
result <- append_strains_to_db(user_data, "/path/to/db")
#> Error: Could not connect to database:
#> unable to open database file