R/new_data_supplied.R

Defines functions new_data_supplied

new_data_supplied <- function(X,y) {
  new_data_supplied <- !is.null(X) & !is.null(y)
  if ((!is.null(X) & is.null(y)) | (is.null(X) & !is.null(y))) {
    stop("Either X or y is NULL. Need both arguments to be specified to compute function for new data.")
  }
  return(new_data_supplied)
}
pat-alt/SVAA documentation built on Jan. 19, 2024, 7:45 p.m.