Description
array rmv_duplicate_termset (array termset, bool mode) rmv_duplicate_termset () removes duplicate items in term set. Mode: TRUE - Remove duplicate subterm.FALSE - Remove onyl exact duplicate term.
Parameters
termsetThe input vector.remove subterm modeOptional. The default mode is False.
Return Values
rmv_duplicate_termset () returns an array of unique term set.
Errors/Exceptions
rmv_duplicate_termset () prints an error message if error occurs.
i. Incorrect number of input arguments.
ERROR! Wrong argument count for rmv_duplicate_termset.
ii. Incorrect input type for termset.
ERROR! Wrong datatype for first argument in rmv_duplicate_termset, an array is expected.
iii. Incorrect input type for mode.
ERROR! Invalid second argument for rmv_duplicate_termset, remove subterm mode (TRUE or FALSE) is expected.
|