grpstats Duplicate table row name: error

I have loaded the lending club loan data set into a table and i wanted to group the data based on the employment data.
my code:
statarray = grpstats(mytable,'emp_title', 'mean', 'DataVars',{'loan_amnt','int_rate', 'annual_inc'})
But I get the following error:
Error using table (line 326)
Duplicate table row name: 'VP, Human Resources'.
Error in dsgrpstats (line 378)
b = table(b_data{:},'VariableNames',varnames,'RowNames',b_obsnames);
Error in grpstats (line 144)
[varargout{1:nargout}] = dsgrpstats(x,group,whichstats,varargin{:});
I dont understand the issue.
Can someone help me

Answers (0)

Products

Release

R2019b

Asked:

on 25 Nov 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!