cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-384501%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%88%B7%E6%96%B0%E4%B9%8B%E5%89%8D%E4%BD%BF%E7%94%A8%E4%BB%8E%20.csv%20%E6%96%87%E4%BB%B6%E5%AF%BC%E5%85%A5%E7%9A%84%E6%95%B0%E6%8D%AE%E5%A1%AB%E5%85%85%E7%9A%84%20JMP%20%E6%95%B0%E6%8D%AE%E8%A1%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-384501%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJMP%20%E7%A4%BE%E5%8C%BA%E6%82%A8%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%88%91%E9%9C%80%E8%A6%81%E4%B8%80%E4%BA%9B%E5%B8%AE%E5%8A%A9%E6%9D%A5%E5%88%B7%E6%96%B0%E4%B9%8B%E5%89%8D%E4%BD%BF%E7%94%A8%E4%BB%A5%E4%B8%8B%E5%91%BD%E4%BB%A4%E5%A1%AB%E5%85%85%E7%9A%84%20JMP%20%E6%95%B0%E6%8D%AE%E8%A1%A8%3CEM%3E%3CSTRONG%3E%E6%96%87%E4%BB%B6%20-%26gt%3B%20%E6%89%93%E5%BC%80%20-%26gt%3B%20%E6%96%87%E6%9C%AC%E6%96%87%E4%BB%B6%3C%2FSTRONG%3E%3C%2FEM%3E%E5%AF%BC%E5%85%A5%E9%80%89%E9%A1%B9%EF%BC%8C%E5%9C%A8%E6%9C%AC%E4%BE%8B%E4%B8%AD%E4%B8%BA%3CEM%3E.csv%3C%2FEM%3E%E6%96%87%E4%BB%B6%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E7%AC%AC%E4%B8%80%E6%AC%A1%EF%BC%8C%E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%BB%8E%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9B%B4%E6%96%B0%E2%80%9D%E6%89%80%E5%81%9A%E7%9A%84%E9%82%A3%E6%A0%B7%EF%BC%9F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E5%9C%A8%E6%AD%A4%E5%85%88%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E5%B8%AE%E5%8A%A9%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E9%97%AE%E5%80%99%EF%BC%8C%3C%2FP%3E%3CP%3E%E7%93%A6%E6%96%AF%E7%A7%91%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-384501%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E6%95%B0%E6%8D%AE%E5%AD%98%E5%8F%96%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-394461%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%88%B7%E6%96%B0%E4%B9%8B%E5%89%8D%E4%BD%BF%E7%94%A8%E4%BB%8E%20.csv%20%E6%96%87%E4%BB%B6%E5%AF%BC%E5%85%A5%E7%9A%84%E6%95%B0%E6%8D%AE%E5%A1%AB%E5%85%85%E7%9A%84%20JMP%20%E6%95%B0%E6%8D%AE%E8%A1%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-394461%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%97%A8%E5%B8%83%E9%9B%B7%E8%BF%AA%EF%BC%8C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E5%9B%9E%E5%A4%8D%E5%B9%B6%E5%AF%B9%E8%BF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%E6%8D%AE%E5%A1%AB%E5%85%85%E7%9A%84%20JMP%20%E6%95%B0%E6%8D%AE%E8%A1%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-384592%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%82%A8%E5%A5%BD%EF%BC%8C%E7%9C%8B%E7%9C%8B%E8%BF%99%E6%98%AF%E5%90%A6%E9%80%82%E5%90%88%E6%82%A8%EF%BC%9A%E5%85%81%E8%AE%B8%20JMP%20%E6%9E%84%E5%BB%BA%E6%96%B0%E8%A1%A8%EF%BC%8C%E7%84%B6%E5%90%8E%E5%B0%86%E5%85%B6%E5%86%85%E5%AE%B9%E5%A4%8D%E5%88%B6%E5%88%B0%E5%8E%9F%E5%A7%8B%E8%A1%A8%E4%B8%AD%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3C%2FCODE%3E%3C%2FP%3E%0A%3CP%3E%E5%B9%B2%E6%9D%AF%EF%BC%8C%3C%2FP%3E%0A%3CP%3E%E5%B8%83%E9%9B%B7%E8%BF%AA%3C%2FP%3E%0A%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3C%2FCODE%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0A%0Adta%20%3D%20datatable(%22a%22)%3B%20%20%20%20%20%2F%2Fthe%20original%20table%20with%20all%20of%20the%20goodies%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2Fget%20the%20new%20table%20by%20whatever%20means%0Adtb%20%3D%20datatable(%22b%22)%3B%20%20%20%20%20%20%2F%2Fthe%20update%20table%0A%0Adta%20%26lt%3B%26lt%3B%20add%20rows(nrow(dtb)%20-%20nrow(dta))%3B%0Adta%5B0%2C0%5D%20%3D%20dtb%5B0%2C0%5D%3B%0A%0Aclose(dtb%2C%20nosave)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%26nbsp%3B%3C%2FCODE%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
VCO
VCO
Level III

Refresh a JMP data table that had been previously populated with data imported from a .csv file

Hello JMP community,

 

I need some help with refreshing of a JMP data table that was previously populated using the File -> Open -> Text File import option, in this case a .csv file.

 

The first time, the data got imported with no issues, I then added a couple of column formulas at the end and done some graphs using the Graph Builder, which I saved the script to the data table and the file as normal.

 

The following day, as I know the .csv file got populated with more data, I went back to the JMP data table and re-ran the 'source' script to update it. It turns out that it creates a new JMP data table, with the newest data, but the original column formulas and scripts for the graphs are not available anymore?

 

I tried the MFI method too, even though it's just importing the same file every time, but I get the same result.

 

Is there a way to simply refresh the original data table, and keep everything else as it was, like we can do via the database query script 'Update from Database' ?

 

Thanks in advance for your help.

 

Regards,

Vasco

2 REPLIES 2

Re: Refresh a JMP data table that had been previously populated with data imported from a .csv file

Hi, see if this works for you: allow JMP to build the new table, but then copy its contents into the original table.

Cheers,

Brady

Names Default To Here(1);

dta = datatable("a");					//the original table with all of the goodies

														//get the new table by whatever means
dtb = datatable("b");			 		//the update table

dta << add rows(nrow(dtb) - nrow(dta));
dta[0,0] = dtb[0,0];

close(dtb, nosave);

 

 

 

VCO
VCO
Level III

Re: Refresh a JMP data table that had been previously populated with data imported from a .csv file

Hi Brady,

 

Thanks for your reply and apologies for the late feedback.

 

I ended up finding that using the 'JMP Query Builder' under the menu 'Tables' does the job. It also has the additional benefit of using a similar UI as the 'Database Query Builder', which is also handy.

 

Thanks,

Vasco