function t = renamevars(t, vars, newNames)
%RENAMEVARS Rename variables in a distributed table or timetable
%   T1 = RENAMEVARS(T1,VARS,NEWNAMES)
%   T2 = RENAMEVARS(T1,VARS,NEWNAMES)
%   
%   
%   See also TABLE, DISTRIBUTED, RENAMEVARS.
%   


%   Copyright 2019 The MathWorks, Inc.

if nargout == 0
    error(message("MATLAB:table:renamevars:NoLHS"));
end
narginchk(3, 3);

t = distributedutil.distributedSpmdWrapper( @renamevars, t, vars, newNames );
