R/fieldsmissing.R

Defines functions fieldsmissing

Documented in fieldsmissing

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 29, 2017, 10:55 a.m.