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

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

Arguments

x

a RAIDSparam object.

value

a vector of positive integer representing the values tested for the K parameter. The K parameter represents the number of neighbors used in the K-nearest neighbor analysis.

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 kList slot in the object
kList(paramDemo) <-  c(2L, 3L, 4L, 5L)