R/findUnits.R

Defines functions findUnits

findUnits <- function(unit=NA){
  if (is.na(unit)) stop("You must provide either a unit")

  factory <- .jcall(
   "com/github/jqudt/onto/UnitFactory",
     "Lcom/github/jqudt/onto/UnitFactory;",
     "getInstance"
    )
  units <- factory$findUnits(unit)

  units
}
egonw/rqudt documentation built on Nov. 4, 2019, 11:35 a.m.