How to find splitapply for multiple values
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Lakshita Lakshita
le 23 Fév 2021
Commenté : Lakshita Lakshita
le 23 Fév 2021
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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Web Services dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!