Borrar filtros
Borrar filtros

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

10 visualizaciones (últimos 30 días)
Is there any matlab equivalent of spread, gather functions of r tidyr package????
  2 comentarios
Star Strider
Star Strider el 24 de Mayo de 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 el 28 de Mayo de 2019
I have not used R, do you know how to do it in matlab???

Iniciar sesión para comentar.

Respuestas (1)

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

Categorías

Más información sobre Measurements and Feature Extraction en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by