R/simpleDF.R

Defines functions dfHasSchema

dfHasSchema <- function(df, ...) {
  declaredSchema <- unlist(list(...))
  realSchema <- unlist(lapply(df, class))

  all(realSchema == declaredSchema)
}
andreamelloncelli/simpleClass documentation built on Aug. 11, 2021, 7:39 a.m.