Learn R Programming

paleomorph (version 0.1.4)

countMissing: Count the number of missing landmarks in an array

Description

Count the number of missing landmarks in an array

Usage

countMissing(A)

Arguments

A
An N x 3 x M array where N is the number of landmarks, 3 is the number of dimensions, and M is the number of specimens.

Value

A length n vector giving the number of missing landmarks for each specimen.

Examples

Run this code



 A <- array(1:(3*6*7), dim = c(7, 3, 6))
 A[2, , 1] <- NA
 countMissing(A)

Run the code above in your browser using DataLab