Learn R Programming

GNAR (version 1.1.4)

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)

Value

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

Arguments

mat

a matrix object.

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
#Check if there are and NAs in fiveVTS
na.row(fiveVTS)

Run the code above in your browser using DataLab