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

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

Arguments

x

a RAIDSparam object.

value

a single integer indicating the number of eigenvectors that will be in the output of the snpgdsPCA function; if 'eigenCount' <= 0, then all eigenvectors are returned.

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 eigenCount slot in the object
eigenCount(paramDemo) <-  33L