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

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

Arguments

x

a RAIDSparam object.

value

a character string representing the algorithm to use with the snpgdsPCA function. The algorithm must be implemented and available to the snpgdsPCA function.

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 PCAalgorithm slot in the object
PCAalgorithm(paramDemo) <-  "randomized"