Defines functions addOffsetType

Documented in addOffsetType

addOffsetType <- function(Units, Description){
	#all mandatory
	stopifnot(length(Units) == length(Description))

	#check ref: Units
	UnitsID <- getID("Units",Units)
	if(NROW(existing <- getMetadata("OffsetType",Description=Description, Units = UnitsID))>0){
		warning(paste("Existing OffsetType entry:", Description, ", Skipping all imports"))
	IaddOffsetType(getOption("odm.handler"), Description=Description, Units=UnitsID)

Try the RObsDat package in your browser

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

RObsDat documentation built on May 31, 2017, 4:20 a.m.