You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: indexGroupValues.m
    path of file: ./repos/matStats/matStats/@Table/private
    
    the code of the file until where you have to start completion: function [groupIndices, groupNames] = indexGroupValues(group)
%INDEXGROUPVALUES  Return indices and names of group in a variable
%
%   output = indexGroupValues(input)
%
%   Example
%   indexGroupValues
%
%   See also
%   parseGroupInfos
%
% ------

    
function [groupIndices, groupNames] = indexGroupValues(group)
%INDEXGROUPVALUES  Return indices and names of group in a variable
%
%   output = indexGroupValues(input)
%
%   Example
%   indexGroupValues
%
%   See also
%   parseGroupInfos
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2012-02-01,    using Matlab 7.9.0.529 (R2009b)
% Copyright 2012 INRA - Cepia Software Platform.

warning('Table:deprecated', ...
    'function "indexGroupValues" is deprecated, use "parseGroupInfos" instead');

if isnumeric(group)
    % group can be given as a numeric column vector
    [groupNames, pos, groupIndices] = unique(group); %#ok<ASGLU>
    
elseif isa(group, 'Table')
    % group can be a table, possibly with factor
    if size(group, 2) > 1
        error('Group Table should have only one column');
    end