R/check_cM.R

Defines functions check_cM

Documented in check_cM

# check_cM
#' internal position check
#'
#' @param x vector of positions
#' @return index of non-numeric items
#' @author Dennis van Muijen

check_cM <- function(x) {
  non_numeric <- is.na(suppressWarnings(as.numeric(as.character(x))))
  which(non_numeric & !is.na(x))
}

Try the mapfuser package in your browser

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

mapfuser documentation built on Oct. 10, 2017, 5:07 p.m.