nastats: Missing values statistics for matrix

View source: R/alleletest.R

nastatsR Documentation

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

narow

vector of row-wise numbers of mixxing values.

nacol

vector of column-wise numbers of mixxing values.

Author(s)

Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en

Examples

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

prabclus documentation built on Oct. 24, 2023, 1:06 a.m.