R/is.cecov.R

Defines functions is.cecov

Documented in is.cecov

is.cecov <-
function(x,allcovs)
#  is.cecov()  -  test if x is name of a cross-effect covariance
#              -  if is a spsecific longname extracts genericname
{
  colons <- which(strsplit(x,"")[[1]] == ":")
  if(length(colons) == 0) {  # nonspecific case
    genericname <- x
  }
  else {
    genericname <- substr(x,colons[3]+1,nchar(x))
  }
  if(any(!is.na(match(genericname,allcovs)))) {
    cecov <- T
  }
  else {
    cecov <- F
  }
  return(cecov)
}

Try the dmm package in your browser

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

dmm documentation built on July 26, 2023, 5:23 p.m.