How to find splitapply for multiple values
显示 更早的评论
x=readtable('milgram’)
occage=findgroups(x.occupation,x.Age)
I want to find the distribution for both age and occupation
For occupation I have figured it out:
[occage, ID] =findgroups(x.occupation,x.Age)
occupation=[ID]
but Im stuck on age, how do I get the 'ID' for that/ how do I get the way the groups have been split for that?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Mapping and Localization 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!