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

2 Ansichten (letzte 30 Tage)
Is there any matlab equivalent of spread, gather functions of r tidyr package????
  2 Kommentare
Star Strider
Star Strider am 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 am 28 Mai 2019
I have not used R, do you know how to do it in matlab???

Melden Sie sich an, um zu kommentieren.

Antworten (1)

François Stevens
François Stevens am 9 Jul. 2020
Have a look at the "stack" and "unstack" functions :

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by