filterNA: Deleting missing values

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

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

Usage

1

Arguments

F

can be any matrix.

Details

See examples

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.

Note

In case you find (almost surely existing) bugs or have recommendations for improving the functions comments are welcome to the above mentioned mail addresses.

Author(s)

Asun Lubiano <lubiano@uniovi.es>, Sara de la Rosa de Saa <rosasara@uniovi.es>

See Also

checkingTra, checking

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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)

FuzzyStatTra documentation built on May 2, 2019, 10:59 a.m.