A function for replacement of the studyDF slot in a RAIDSparam class.

# S4 method for class 'RAIDSparam'
studyDF(x) <- value

Arguments

x

a RAIDSparam object.

value

a data.frame containing the information about the study associated with the analyzed sample(s). The data.frame must have those 3 columns: "study.id", "study.desc", "study.platform". All columns must be character strings (no factors).

Value

the modified RAIDSparam object when the new value is valid.

Author

Pascal Belleau, Astrid Deschênes and Alexander Krasnitz

Examples


## Create a RAIDSparam object
paramDemo <- RAIDSparam()

## Demo study data frame
studyDF <- data.frame(study.id="TEST1", study.desc="Study1",
    study.platform="CSHL", stringsAsFactors=FALSE)

## Assign the new table to the studyDF slot in the object
studyDF(paramDemo) <- studyDF