Description Usage Arguments Value Author(s) Examples
View source: R/identifyMonomorphism.R
Identifies the rows of a matrix that only show one level.
1 |
x |
a matrix consisting of integers between 1 and n.cat,
where n.cat is the number of levels the variables in |
Numeric vector containing the rows of x
showing only one level.
Holger Schwender, holger.schwender@udo.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# Generate a data set consisting of 10 rows and 15 columns,
# where the values are randomly drawn from the integers 1, 2, and 3,
# and row 3 and 7 consist only of one level.
mat <- matrix(sample(3, 2000, TRUE), 10)
mat[3, ] <- 1
mat[7, ] <- 2
identifyMonomorphism(mat)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.