copyAnnotations: Copy annotations from another record in REDCap

Description Usage Arguments Details Value Author(s)

View source: R/copyAnnotations.R

Description

Copies the study, specimen and assay material metadata from another record in the Repository

Usage

1
2
3
4
5
6
copyAnnotations(
  copyFrom = NULL,
  copyTo = NULL,
  type = c("submission", "study"),
  overwriteExisting = FALSE
)

Arguments

copyFrom

The molecular_id of the record to copy data from

copyTo

The molecular_id of the record to edit using copied data

type

A character array of the types of annotations you want to copy: "submission", "study", "subject", "biospecimen", "assaymaterial", "genomics". Default: c("submission", "study")

overwriteExisting

Default to false. If data exists in the record to edit, do you want to overwrite existing data?

Details

Requires valid credentials to be set in the environment with setCreds() and to have write privileges to the data

Value

Results of the copy attempt including the data of the new record as well as the REDCap response.

Author(s)

Amy Paguirigan


FredHutch/tgR documentation built on Oct. 5, 2021, 8:39 a.m.