Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Details

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

Value

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

Examples

#Check if there are and NAs in fiveVTS
na.row(fiveVTS)

GNAR

Methods for Fitting Network Time Series Models

v1.1.1
GPL-2
Authors
Kathryn Leeming [aut], Guy Nason [aut], Matt Nunes [aut, cre], Marina Knight [ctb]
Initial release
2020-11-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.