Utility Functions for Open Systems Pharmacology R Packages


[Up] [Top]

Documentation for package ‘ospsuite.utils’ version 1.0.0

Help Pages

%||% Default value for 'NULL'
enum Define an enumerated list
enumGetValue Get enum values
enumHasKey Check if an enum has a certain key.
enumKeys Get all keys of an enum
enumPut Add a new key-value pairs to an 'enum'
enumRemove Remove an entry from the enum.
enumValues Get the values stored in an enum
formatNumerics formatNumerics
getEnumKey Get the key mapped to the given value in an 'enum'
hasUniqueValues Remove duplicate values from data
ifNotNull Shortkey checking if argument 1 is not 'NULL', output the argument 2 if not null, or output argument 3 otherwise
isFileExtension Check if the provided path has required extension
isIncluded Check if input is included in a list
isOfLength Check if the provided object has 'nbElements' elements
isOfType Check if the provided object is of certain type
isSameLength Check if two objects are of same length
op-null-default Default value for 'NULL'
Printable Printable
toList Make sure the object is a list
validateEnumValue Check if 'value' is in the given 'enum'. If not, stops with an error.
validateIsIncluded Check if the provided object is of certain type. If not, stop with an error.
validateIsInteger Check if the provided object is of certain type. If not, stop with an error.
validateIsLogical Check if the provided object is of certain type. If not, stop with an error.
validateIsNumeric Check if the provided object is of certain type. If not, stop with an error.
validateIsOfLength Check if the provided object is of certain type. If not, stop with an error.
validateIsOfType Check if the provided object is of certain type. If not, stop with an error.
validateIsSameLength Check if the provided object is of certain type. If not, stop with an error.
validateIsString Check if the provided object is of certain type. If not, stop with an error.
validatePathIsAbsolute Check if the provided object is of certain type. If not, stop with an error.