is.row.na: Test if a matrix contains missing values

Description Usage Arguments Value Author(s) See Also Examples

Description

The function returns a vector of logical variables, one for each row of the matrix. The variable is TRUE if the row does not contain any missing values and FAlSE otherwise.

Usage

1
2

Arguments

data

The data matrix.

Value

The vector of logical variable

Author(s)

Raphael Gottardo

See Also

is.na

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
### Generate a matrix
M<-matrix(rnorm(100),10,10)
M[1,1]<-NA
M[1,2]<- -Inf
M[3,10]<-NA

### Indices of the rows without missing values 
ind<-is.row.na(M)

### Submatrix of M with finite values
M.finite<-M[ind,]

rama documentation built on Nov. 8, 2020, 8:02 p.m.