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

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Repeated Measures and MANOVA 的更多信息

产品

版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by