outer join of multiple tables

I have multiple (about 15) csv files that I would like to outerjoin. I would like to know whether there is a simple way to write the code.

5 件のコメント

Rik
Rik 2018 年 6 月 6 日
I'dd suggest writing a loop. What did you already try?
alpedhuez
alpedhuez 2018 年 6 月 6 日
編集済み: alpedhuez 2018 年 6 月 6 日
Suppose I have tables A, B, C, ..... What does this loop look like?
Stephen23
Stephen23 2018 年 6 月 6 日
編集済み: Stephen23 2018 年 6 月 6 日
Z = load first CSV file
for k = 2:number of CSV files
A = load next CSV file
Z = outerjoin(Z,A);
end
alpedhuez
alpedhuez 2018 年 6 月 6 日
Yes. Then the filename should be well-behaved and indexed with k?
Stephen23
Stephen23 2018 年 6 月 6 日
編集済み: Stephen23 2018 年 6 月 6 日
" Then the filename should be well-behaved"
I don't know what a "well-behaved" filename is. There is absolutely no requirement that the filenames have to follow any particular naming convention or sequence. You might like to read this:
"and indexed with k?"
Yes, that is the point of using a loop.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

製品

タグ

質問済み:

2018 年 6 月 6 日

編集済み:

2018 年 6 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by