A function for getting the eigenCount slot in a RAIDSparam class.

# S4 method for class 'RAIDSparam'
eigenCount(x)

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.

Author

Pascal Belleau, Astrid Deschênes and Alexander Krasnitz

Examples


## Create a RAIDSparam object
paramDemo <- RAIDSparam()

## Extract the eigenCount slot for the object
eigenCount(paramDemo)
#> [1] 32