使用匯入功能產生的 JMP 檔案以特定名稱儲存到特定位置。我正在使用導入功能導入多個文件。我想將其自動保存在資料夾外部並使用相同的名稱。

基礎資料分析與建模回覆:使用匯入功能產生的 JMP 檔案以特定名稱儲存到特定位置。我假設您想將從 Sample Data 資料夾中找到的檔案儲存到與該資料夾位於同一層級的名為 Sample Data.jmp 的單一 JMP 表中。
Names Default To Here(1);
xlsx_dir = "$DOWNLOADS/JMP example/Sample data/";
dir = Convert File Path(xlsx_dir, posix);
dts = Multiple File Import( // will return a list
<<SET folder=""></SET>
<P>根據需要進行修改,這提供了一些關於如何使用 Word()「遍歷」目錄路徑的想法</P>回覆:使用匯入功能產生的 JMP 檔案以特定名稱儲存到特定位置。謝謝你的解釋。我工作得很好。
我能夠獲取文件名但在保存時卻遇到了困難。
//檔名=reverse(words(dir,"/"))[1];
//dt << 設定名稱(晶圓);
回覆:使用匯入功能產生的 JMP 檔案以特定名稱儲存到特定位置。Word(-1, str,) 基本上與 Reverse(Words(str))[1] 相同。學習如何使用 Word 和 Words 會非常有幫助(有時是 Item 和 Items())
Names Default To Here(1);
my_str = "http://www.jmp.com";
r1 = Word(-1, my_str, ":/.");
r2 = Reverse(Words(my_str, ":/."))[1];
Show(r1, r2);