R/RAIDSparam_class.R
pruningMethod-set-RAIDSparam-method.RdA function for replacement of pruningMethod slot in a
RAIDSparam class.
# S4 method for class 'RAIDSparam'
pruningMethod(x) <- valuea RAIDSparam object.
a single character string representing the method that
will be used to calculate the linkage disequilibrium in the
snpgdsLDpruning() function. The 4 possible values
are: "corr", "r", "dprime", and "composite".
the modified RAIDSparam object when the new value is valid.
## Create a RAIDSparam object
paramDemo <- RAIDSparam()
## Assign new value to the pruningMethod slot in the object
pruningMethod(paramDemo) <- "r"