Learn R Programming

prabclus (version 2.3-4)

nastats: Missing values statistics for matrix

Description

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

Usage

nastats(amatrix, nastr="--")

Value

A list with components

narow

vector of row-wise numbers of mixxing values.

nacol

vector of column-wise numbers of mixxing values.

Arguments

amatrix

(any) matrix.

nastr

missing value indicator.

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