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

조회 수: 10 (최근 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.
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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by