function b = mergecats(a, varargin)
%MERGECATS Merge categories in a distributed categorical array.
%   
%   B = MERGECATS(A,CATEGORIES)
%   B = MERGECATS(A,OLDCATEGORIES,NEWCATEGORY)
%    
%   See also CATEGORICAL/MERGECATS, distributed.
%   


%   Copyright 2016-2019 The MathWorks, Inc.

narginchk(2,3); % mergecats(A,OLDCATEGORIES,NEWCATEGORY)
if nargout == 0
    error(message('MATLAB:categorical:NoLHS',upper(mfilename),',OLD,NEW'));
end

b = distributedutil.distributedSpmdWrapper( @mergecats, a, varargin{:} );
