R/checkNA.r

Defines functions checkNA

Documented in checkNA

#' check for NA values in a matrix (of landmarks)
#'
#' check for NA values in a matrix (of landmarks)
#'
#' @param x matrix containing landmarks
#' @return returns a vector with missin landmarks and a vector of length=0 if none are missing
#' @export
checkNA <- function(x) {
    chk <- rowSums(x)
    ignore <- which(is.na(chk))
    return(ignore)
}
        

Try the Morpho package in your browser

Any scripts or data that you put into this service are public.

Morpho documentation built on Feb. 16, 2023, 10:51 p.m.