Learn R Programming

prabclus (version 2.2-2)

nastats: Missing values statistics for matrix

Description

Computes column-wise and row-wise numbers of missing values.

Usage

nastats(amatrix, nastr="--")

Arguments

amatrix
(any) matrix.
nastr
missing value indicator.

Value

  • A list with components
  • narowvector of row-wise numbers of mixxing values.
  • nacolvector of column-wise numbers of mixxing values.

Examples

Run this code
xx <- cbind(c(1,2,3),c(0,0,1),c(5,3,1))
  nastats(xx,nastr=0)

Run the code above in your browser using DataLab