A function for replacement of pcaList slot in a RAIDSparam class.

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

Arguments

x

a RAIDSparam object.

value

a vector of positive integer representing the values tested for the D parameter. The D parameter represents the number of dimensions used in the PCA analysis.

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()

## Assign new value to the pcaList slot in the object
pcaList(paramDemo) <-  c(2L, 3L, 4L, 5L)