Given any matrix, this function deletes those rows with missing values.
filterNA(F)
Arguments
F: can be any matrix.
Details
See examples
Returns
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.
In case you find (almost surely existing) bugs or have recommendations for improving the functions comments are welcome to the above mentioned mail addresses.
See Also
checkingTra, checking
Examples
# 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)