Learn R Programming

GNAR (version 1.0)

na.row: Identifies which rows of a matrix have NAs

Description

Returns a vector with elements TRUE/FALSE identifying which rows contain NA elements.

Usage

na.row(mat)

Arguments

mat

a matrix object.

Value

na.row returns a vector of length equal to the number of rows in mat. Each element is either TRUE or FALSE.

Details

This function is used in the unstacking of residuals into a residual matrix and replacing NAs where they were previously present.

Examples

Run this code
# NOT RUN {
#Check if there are and NAs in fiveVTS
na.row(fiveVTS)
# }

Run the code above in your browser using DataLab