Create a panel dataset

14 ビュー (過去 30 日間)
Mario Diaco
Mario Diaco 2020 年 5 月 26 日
コメント済み: Mario Diaco 2020 年 5 月 29 日
Hi!
I've to construct a panel dataset. I've to combine 2 object, where the first one of these is a table ("fund") contain the dates and the countries names, in this way:
the second object ("observation") is a cell array where the rows are the dates and the columns are the countreies names, but any cell of the array contains multiple data relative to a specific country and specific data. I've to match this data with the data in the first object

採用された回答

Nishant Gupta
Nishant Gupta 2020 年 5 月 29 日
First convert the second object ("observation") which is a cell array into a table using 'cell2table' function.
Then, combine the two tables according to the key variable using 'join' function.
  1 件のコメント
Mario Diaco
Mario Diaco 2020 年 5 月 29 日
thank I followed your indication! But, can I specify the "country" as a keyword too?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by