Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

identifyMonomorphism

Identification of Constant Variables


Description

Identifies the rows of a matrix that only show one level.

Usage

identifyMonomorphism(x)

Arguments

x

a matrix consisting of integers between 1 and n.cat, where n.cat is the number of levels the variables in x can take. Each row of x is assumed to represent one variable. Missing values are allowed.

Value

Numeric vector containing the rows of x showing only one level.

Author(s)

Holger Schwender, holger.schwender@udo.edu

Examples

## 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)

scrime

Analysis of High-Dimensional Categorical Data Such as SNP Data

v1.3.5
GPL-2
Authors
Holger Schwender, with a contribution of Arno Fritsch
Initial release
2018-12-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.