Skip to contents

Update References in the EPPIcenter SampleDB database

Usage

UpdateReferences(reference, operation, identifier = NULL, update = NULL)

Arguments

reference

A string specifying a type of EPPIcenter reference (freezer, specimen_type, study).

operation

A string specifying the type of update operation to perform (add, modify, delete).

identifier

A reference-specific list that identifies the reference item that is being updated.

If the reference is freezer the identifier list must include:
freezer_name: A string specifying the freezer name
freezer_levelI: A string specifying the freezer levelI name
freezer_levelII: A string specifying the freezer levelII name

If the reference is specimen_type the identifier list must include:
specimen_type_name: A string specifying the specimen type name

If the reference is study the identifier list must include:
study_short_code: A string specifying the study short code

update

A reference-specific list that contains the reference update information

If the reference is freezer the update, for add operations the list must include:
freezer_name: A string specifying the freezer name
freezer_type: A string specifying the freezer type
freezer_levelI: A string specifying the freezer levelI name
freezer_levelII: A string specifying the freezer levelII name

If the reference is specimen_type the update, for add operations the list must include:
specimen_type_name: A string specifying the specimen type name

If the reference is study the update, for add operations the list must include:
study_title: A string specifying the study title
study_description: A string specifying the study description
study_short_code: A string specifying the study short code
study_lead_person: A string specifying the study lead person
study_longitudinal: A logical value. TRUE if the study is longitudinal and FALSE if the study is not longitudinal

For modify operations all update items are optional

Examples

if (FALSE) { # \dontrun{
UpdateReferences(reference = "freezer", operation = "add", update = list(freezer_name = "Ruth", freezer_type = "-80", freezer_levelI = "rack1", freezer_levelII = "position_C1"))
} # }