Is there any matlab equivalent of spread, gather functions of r tidyr package????

10 vues (au cours des 30 derniers jours)
Jeffrey Marak
Jeffrey Marak le 24 Mai 2019
Is there any matlab equivalent of spread, gather functions of r tidyr package????
  2 commentaires
Star Strider
Star Strider le 24 Mai 2019
From the tidyr (link) website:
There are two fundamental verbs of data tidying:
  • gather() takes multiple columns, and gathers them into key-value pairs: it makes “wide” data longer.
  • spread() takes two columns (key & value), and spreads into multiple columns: it makes “long” data wider.
Jeffrey Marak
Jeffrey Marak le 28 Mai 2019
I have not used R, do you know how to do it in matlab???

Connectez-vous pour commenter.

Réponses (1)

François Stevens
François Stevens le 9 Juil 2020
Have a look at the "stack" and "unstack" functions :

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by