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

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

Arguments

x

a RAIDSparam object.

value

a positive numeric representing the maximum missing rate accepted to use SNPs in the PCA analysis done with the snpgdsPCA function. If NaN, no missing threshold.

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 PCAmissingRate slot in the object
PCAmissingRate(paramDemo) <-  0.03322