grpstats Duplicate table row name: error
Show older comments
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)
Categories
Find more on Repeated Measures and MANOVA in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!