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

9 次查看(过去 30 天)
Is there any matlab equivalent of spread, gather functions of r tidyr package????
  2 个评论
Star Strider
Star Strider 2019-5-24
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.

请先登录,再进行评论。

回答(1 个)

François Stevens
Have a look at the "stack" and "unstack" functions :

类别

Help CenterFile Exchange 中查找有关 Measurements and Feature Extraction 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by