R/fieldsmissing.R

fieldsmissing <-
function (dat, fields) 
{
  ck <- checkdatastr(dat)
  if (any(ck$Present == FALSE)==TRUE) {
    fa <- ck[ck$Present == FALSE,1]
    fd<-as.character(fa)
    msg<-paste(fd,collapse=", ")
    stop(paste("Fields missing: ", msg))
}
}

Try the biogeo package in your browser

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

biogeo documentation built on May 1, 2019, 8:05 p.m.