R/check_matrix_or_dataframe.R

Defines functions check_matrix_or_dataframe

# ============================================================================
# Wrapper to prob-zk functions
#
# Details:
# Checks if ch and cs are either matrices or data frames
# ============================================================================
check_matrix_or_dataframe <- function(x, name) {
  if (!(is.data.frame(x) || is.matrix(x))) {
    stop(paste("Error:", name, "must be either a data frame or a matrix."))
  }
}

Try the BMEmapping package in your browser

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

BMEmapping documentation built on July 2, 2025, 9:07 a.m.