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

10 ビュー (過去 30 日間)
Jeffrey Marak
Jeffrey Marak 2019 年 5 月 24 日
回答済み: François Stevens 2020 年 7 月 9 日
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.
Jeffrey Marak
Jeffrey Marak 2019 年 5 月 28 日
I have not used R, do you know how to do it in matlab???

サインインしてコメントする。

回答 (1 件)

François Stevens
François Stevens 2020 年 7 月 9 日
Have a look at the "stack" and "unstack" functions :

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by