FuzzyStatTra (version 1.0)

filterNA:

Description

Given any matrix, this function deletes those rows with missing values.

Usage

filterNA(F)

Arguments

F
can be any matrix.

Value

The function returns a list with two components: the first one is a matrix identical to the input matrix F but without the rows containing missing values, and the second component is the number of rows of the input matrix without missing values.

Details

See examples

See Also

checkingTra, checking

Examples

Run this code
# Example 1:
F=matrix(c(1,2,3,NA,5,4,7,2),nrow=2)
filterNA(F)

# Example 2:
F=matrix(c(1,2,3,NA,5,4,7,2,1,2,3,4),nrow=3)
filterNA(F)

# Example 3:
data(M2)
filterNA(M2)

Run the code above in your browser using DataLab