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-6268%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E7%A1%AE%E5%AE%9A%E5%88%97%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6268%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3E%E6%88%91%E6%9C%89%E4%B8%80%E4%B8%AA%20JMP%20%E8%84%9A%E6%9C%AC%EF%BC%8C%E5%AE%83%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%8C%85%E5%90%AB%E5%85%AC%E5%BC%8F%E7%9A%84%E6%96%B0%E5%88%97%E3%80%82%20%E6%88%91%E8%AF%95%E5%9B%BE%E6%89%BE%E5%87%BA%E5%A6%82%E4%BD%95%E6%A3%80%E6%B5%8B%E8%AF%A5%E5%88%97%E6%98%AF%E5%90%A6%E5%B7%B2%E5%AD%98%E5%9C%A8%EF%BC%8C%E4%BB%A5%E4%BE%BF%E6%88%91%E5%8F%AF%E4%BB%A5%E8%B7%B3%E8%BF%87%E5%88%9B%E5%BB%BA%E5%AE%83%EF%BC%8C%E5%B9%B6%E9%81%BF%E5%85%8D%E7%94%9F%E6%88%90%E9%A2%9D%E5%A4%96%E7%9A%84%E5%88%97%E3%80%82%20%E6%88%91%E7%A1%AE%E4%BF%A1%E5%AE%83%E5%B0%B1%E5%9C%A8%E9%82%A3%E9%87%8C%EF%BC%8C%E4%BD%86%E6%88%91%E5%9C%A8%E7%8E%B0%E6%9C%89%E7%9A%84%E6%96%87%E7%8C%AE%E4%B8%AD%E6%B2%A1%E6%9C%89%E6%89%BE%E5%88%B0%E5%AE%83%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%E3%80%82%3C%2FP%3E%3CP%3E%E9%BA%A6%E5%85%8B%E9%A3%8E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-55586%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%88%A4%E6%96%AD%E5%88%97%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-55586%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E8%BF%99%E6%98%AF%E6%88%91%E7%9A%84%E9%80%BB%E8%BE%91%E7%9A%84%E4%B8%80%E4%B8%AA%E7%89%88%E6%9C%AC%EF%BC%8C%E4%B8%8D%E5%8C%BA%E5%88%86%E5%A4%A7%E5%B0%8F%E5%86%99%E3%80%82%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20open(%22%24sample_data%5CBig%20Class.jmp%22)%3B%0Acol_name_list%20%3D%20dt%20%26lt%3B%26lt%3B%20get%20column%20names(string)%3B%0A%2F%2F%20Convert%20all%20column%20names%20to%20uppercase%20for%20case-insensitive%20search%0Afor%20(i%20%3D%201%2C%20i%20%26lt%3B%3D%20nitems(col_name_list)%2C%20i%2B%2B%2C%0A%20col_name_list%5Bi%5D%20%3D%20uppercase(col_name_list%5Bi%5D)%3B%0A)%3B%0Anew_column%20%3D%20%22BMI%22%3B%0A%2F%2F%20English%20BMI%20Formula%20BMI%20%3D%20(%20Weight%20in%20Pounds%20%2F%20(%20Height%20in%20inches%5E2%20)%20)%20x%20703%0Aif%20(!contains(col_name_list%2C%20uppercase(new_column))%2C%0A%20%20%20%20dt%20%26lt%3B%3CNEW%20column%3D%22%22%3E%3C%2FNEW%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-55531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%88%A4%E6%96%AD%E5%88%97%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-55531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E8%B0%A2%E8%B0%A2%E5%A5%B3%E5%A3%AB%EF%BC%81%3CBR%20%2F%3E%E5%8F%AA%E6%9C%89%E6%82%A8%E7%9A%84%E7%A4%BA%E4%BE%8B%E5%AF%B9%E6%88%91%E6%9C%89%E7%94%A8%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%85%B6%E4%BB%96%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E5%8C%BA%E5%88%86%E5%A4%A7%E5%B0%8F%E5%86%99%E3%80%82%20%E6%88%91%E4%B8%8D%E5%BE%97%E4%B8%8D%E4%BD%BF%E7%94%A8%E4%BD%A0%E7%9A%84%EF%BC%8C%E5%9B%A0%E4%B8%BA%E6%88%91%E6%97%A0%E6%B3%95%E7%A1%AE%E5%AE%9A%E6%88%91%E7%9A%84%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%AD%97%E7%AC%A6%E7%9A%84%E5%A4%A7%E5%B0%8F%E5%86%99%E6%98%AF%E5%90%A6%E6%AD%A3%E7%A1%AE%E3%80%82%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6276%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%88%A4%E6%96%AD%E5%88%97%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6276%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EPM%E7%BD%97%E5%85%B9%EF%BC%8C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E9%A6%96%E5%85%88%EF%BC%8C%E6%88%91%E8%A6%81%E7%A1%AE%E8%AE%A4%E6%82%A8%E7%BC%96%E5%86%99%E7%9A%84%E4%BB%A3%E7%A0%81%E4%B9%9F%E9%80%82%E7%94%A8%E4%BA%8E%E6%88%91%EF%BC%8C%E5%B9%B6%E4%B8%94%E6%88%91%E7%BC%96%E5%86%99%E7%9A%84%E8%A7%A3%E9%87%8A%E4%B8%8E%20JMP%209%20%E6%88%96%2010%20%E7%9A%84%E8%A1%8C%E4%B8%BA%E4%B8%8D%E4%B8%80%E8%87%B4%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E9%98%85%E8%AF%BB%E6%82%A8%E7%9A%84%E5%9B%9E%E5%A4%8D%E5%90%8E%EF%BC%8C%E6%88%91%E8%BF%98%E5%9C%A8%20JMP%209%20%E5%92%8C%2010%20%E4%B8%AD%E5%B0%9D%E8%AF%95%E4%BA%86%20contains%20%E5%92%8C%20if%20%E8%AF%AD%E5%8F%A5%E4%B8%8E%E5%88%97%E8%A1%A8%E3%80%81%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%92%8C%E6%95%B0%E5%AD%97%E7%9A%84%E5%87%A0%E7%A7%8D%E4%B8%8D%E5%90%8C%E7%BB%84%E5%90%88%E3%80%82%20%E8%99%BD%E7%84%B6%E6%88%91%E7%9A%84%E5%B0%9D%E8%AF%95%E5%B9%B6%E4%B8%8D%E8%AF%A6%E5%B0%BD%EF%BC%8C%E4%BD%86%E6%88%91%E6%89%80%E6%9C%89%E7%9A%84%E7%BB%93%E6%9E%9C%E9%83%BD%E4%B8%8E%E4%BD%A0%E7%9A%84%E4%B8%80%E8%87%B4%E3%80%82%20%E6%9C%80%E5%88%9D%EF%BC%8C%E5%BD%93%E6%88%91%E9%98%85%E8%AF%BB%E6%82%A8%E7%9A%84%E7%AC%AC%E4%B8%80%E7%AF%87%E6%96%87%E7%AB%A0%E6%97%B6%EF%BC%8C%E6%88%91%E6%83%B3%E8%B5%B7%E4%BA%86%E5%87%A0%E5%B9%B4%E5%89%8D%E6%88%91%E6%89%A7%E8%A1%8C%E7%9A%84%E4%B8%80%E4%BA%9B%E6%95%85%E9%9A%9C%E6%8E%92%E9%99%A4%EF%BC%8C%E5%85%B6%E4%B8%AD%E6%88%91%E9%87%87%E7%94%A8%E4%BA%86%20contains()%26gt%3B0%20%E7%9A%84%E4%BD%BF%E7%94%A8%E3%80%82%20%E6%88%91%E6%97%A0%E6%B3%95%E9%87%8D%E7%8E%B0%E8%BF%99%E4%B8%AA%E5%9C%BA%E6%99%AF%EF%BC%9B%E4%BD%86%E6%98%AF%EF%BC%8C%E6%88%91%E7%A1%AE%E5%AE%9E%E5%9C%A8%20JMP%20%E8%84%9A%E6%9C%AC%E7%BC%96%E5%86%99%E6%8C%87%E5%8D%97%E4%B8%AD%E6%89%BE%E5%88%B0%E4%BA%86%E4%BB%A5%E4%B8%8B%E4%BF%A1%E6%81%AF%E3%80%82%20%E5%AE%83%E8%AF%A6%E7%BB%86%E8%AF%B4%E6%98%8E%E4%BA%86%E4%BD%BF%E7%94%A8%20contains%20%E5%92%8C%20%26gt%3B0%EF%BC%8C%E8%BF%99%E5%8F%AF%E8%83%BD%E9%80%82%E5%90%88%E4%BB%96%E4%BB%AC%E7%9A%84%E7%A4%BA%E4%BE%8B%EF%BC%8C%E4%BD%86%E6%B2%A1%E6%9C%89%E6%98%8E%E7%A1%AE%E8%AF%B4%E6%98%8E%E5%AE%83%E6%98%AF%E6%88%96%E4%B8%8D%E6%98%AF%E5%BF%85%E9%9C%80%E7%9A%84%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EJMP%20%E8%84%9A%E6%9C%AC%E7%BC%96%E5%86%99%E6%8C%87%E5%8D%97%E7%89%88%E6%9C%AC%2010%20%E7%9A%84%E7%AC%AC%20136%20%E9%A1%B5%EF%BC%9A%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20AGaramond-Regular%3B%20font-size%3A%2010pt%3B%22%3E%E2%80%9C%E8%A6%81%E8%AF%84%E4%BC%B0%E6%9F%90%E4%B8%AA%E9%A1%B9%E7%9B%AE%E6%98%AF%E5%90%A6%E5%9C%A8%E5%88%97%E8%A1%A8%E4%B8%AD%EF%BC%8C%E8%AF%B7%E4%BD%BF%E7%94%A8%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20LucidaSansTypewriter%3B%20font-size%3A%209pt%3B%22%3E%E6%B4%9B%E5%85%8B()%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20AGaramond-Regular%3B%20font-size%3A%2010pt%3B%22%3E%E5%92%8C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20LucidaSansTypewriter%3B%20font-size%3A%209pt%3B%22%3E%E5%8C%85%E5%90%AB()%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20AGaramond-Regular%3B%20font-size%3A%2010pt%3B%22%3E%E5%92%8C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20LucidaSansTypewriter%3B%20font-size%3A%209pt%3B%22%3E%26gt%3B0%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20AGaramond-Regular%3B%20font-size%3A%2010pt%3B%22%3E%20%E3%80%82%20%E8%BF%94%E5%9B%9E%E5%80%BC%E4%B8%BA%E9%9B%B6%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20AGaramond-Regular%3B%20font-size%3A%2010pt%3B%22%3E%E8%A1%A8%E7%A4%BA%E8%AF%A5%E9%A1%B9%E7%9B%AE%E4%B8%8D%E5%9C%A8%E5%88%97%E8%A1%A8%E4%B8%AD%E3%80%82%20%E8%BF%94%E5%9B%9E%E5%80%BC%201%20%E8%A1%A8%E7%A4%BA%E8%AF%A5%E9%A1%B9%E7%9B%AE%E8%87%B3%E5%B0%91%E5%9C%A8%E5%88%97%E8%A1%A8%E4%B8%AD%E5%87%BA%E7%8E%B0%E8%BF%87%E4%B8%80%E6%AC%A1%E3%80%82%E2%80%9D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20AGaramond-Regular%3B%20font-size%3A%2010pt%3B%22%3E...%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20AGaramond-Regular%3B%20font-size%3A%2010pt%3B%22%3E%E2%80%9C%E6%9F%A5%E4%B8%80%E4%B8%8B%E8%BF%99%E4%B8%AA%E6%95%B0%E5%AD%97%E6%98%AF%E5%90%A6%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20LucidaSansTypewriter%3B%20font-size%3A%209pt%3B%22%3E5%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20AGaramond-Regular%3B%20font-size%3A%2010pt%3B%22%3E%E5%AD%98%E5%9C%A8%E4%BA%8E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20LucidaSansTypewriter%3B%20font-size%3A%209pt%3B%22%3E%E5%88%97%E8%A1%A8%E6%95%B0%E9%87%8F%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20LucidaSansTypewriter%3B%20font-size%3A%209pt%3B%22%3ENRow(Loc(numList%2C%205))%20%26gt%3B0%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CEM%20style%3D%22font-size%3A%209pt%3B%20font-family%3A%20LucidaSansTypewriter%2CItalic%3B%22%3E0%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20LucidaSansTypewriter%3B%20font-size%3A%209pt%3B%22%3E%E5%8C%85%E5%90%AB(numList%2C%205)%20%26gt%3B0%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CEM%20style%3D%22font-size%3A%209pt%3B%20font-family%3A%20LucidaSansTypewriter%2CItalic%3B%22%3E0%22%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E5%B8%8C%E6%9C%9B%E8%BF%99%E5%8F%AF%E4%BB%A5%E5%B8%AE%E5%8A%A9%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6275%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%88%A4%E6%96%AD%E5%88%97%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6275%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%E7%BB%B4%E8%B4%9D%E6%B3%A2%EF%BC%8C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E6%88%91%E5%B0%9D%E8%AF%95%E4%BA%86%E4%B8%8D%E5%90%8C%E7%9A%84%E7%BB%84%E5%90%88%E5%B9%B6%E5%AF%B9%E6%AD%A3%E6%95%B4%E6%95%B0%E5%8F%96%E8%B4%9F%EF%BC%8C%E6%97%A0%E8%AE%BA%E5%A4%9A%E5%A4%A7%EF%BC%8C%E7%BB%93%E6%9E%9C%E9%83%BD%E6%98%AF%200%E3%80%82%E6%89%80%E4%BB%A5%E6%88%91%E7%9A%84%E4%BB%A3%E7%A0%81%E5%8F%AF%E4%BB%A5%E5%B7%A5%E4%BD%9C%EF%BC%88%E5%9C%A8%20JMP%209%20%E5%92%8C%2010%20%E4%B8%AD%EF%BC%89%E3%80%82%E8%AF%9D%E8%99%BD%E5%A6%82%E6%AD%A4%EF%BC%8C%E6%88%91%E8%BF%98%E6%98%AF%E5%BE%88%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E6%8F%90%E9%86%92%E2%80%94%E2%80%94%E8%BF%99%E7%A7%8D%E6%96%B9%E6%B3%95%E5%8F%AF%E8%83%BD%E4%B8%8D%E9%80%82%E7%94%A8%E4%BA%8E%E6%89%80%E6%9C%89%E8%AF%AD%E8%A8%80%E3%80%82%E5%AE%83%E5%BD%93%E7%84%B6%E8%BF%98%E9%9C%80%E8%A6%81%E8%BF%9B%E4%B8%80%E6%AD%A5%E7%9A%84%E6%B5%8B%E8%AF%95%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Eb%20%3D%202000000000000%3B%0A!b%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%E6%97%A5%E5%BF%97%E6%98%BE%E7%A4%BA%EF%BC%9A%3C%2FP%3E%0A%3CP%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20'Courier%20New'%3B%22%3E0%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E9%97%AE%E5%80%99%EF%BC%8C%3C%2FP%3E%0A%3CP%3EPM%E7%BD%97%E5%85%B9%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6274%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%88%A4%E6%96%AD%E5%88%97%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6274%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%B9%9F%E6%96%B9%E4%BE%BF%E7%9F%A5%E9%81%93%E3%80%82%20%E6%88%91%E6%80%BB%E6%98%AF%E5%BE%88%E9%AB%98%E5%85%B4%E6%9C%89%E5%8F%A6%E4%B8%80%E4%B8%AA%E5%B7%A5%E5%85%B7%E5%8F%AF%E4%BB%A5%E6%B7%BB%E5%8A%A0%E5%88%B0%E5%B7%A5%E5%85%B7%E7%AE%B1%E4%B8%AD%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6273%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%88%A4%E6%96%AD%E5%88%97%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6273%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E7%9F%A5%E9%81%93%E8%BF%99%E4%B8%80%E7%82%B9%E9%9D%9E%E5%B8%B8%E6%96%B9%E4%BE%BF%E3%80%82%20%E6%88%91%E5%BE%97%E5%B0%8F%E5%BF%83%E4%B8%80%E7%82%B9%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6272%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%88%A4%E6%96%AD%E5%88%97%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6272%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%8D%AE%E6%88%91%E6%89%80%E7%9F%A5%EF%BC%8C%E6%B2%A1%E6%9C%89%E4%BB%BB%E4%BD%95%E5%8D%95%E4%B8%80%E5%8A%9F%E8%83%BD%E3%80%82%20%E4%BD%86%3CEM%3E%E4%B8%8D%E8%A7%81%E4%BA%86%EF%BC%88%EF%BC%89%3C%2FEM%3E%E7%BB%93%E5%90%88%3CEM%3E%E5%8F%AF%E7%BC%96%E5%86%99%E8%84%9A%E6%9C%AC()%3C%2FEM%3E%E5%8F%AF%E4%BB%A5%E5%81%9A%E5%88%B0%E8%BF%99%E4%B8%80%E7%82%B9%E3%80%82%3C%2FP%3E%0A%3CP%3E%E8%AF%A5%E5%88%97%E8%BF%98%E9%9C%80%E8%A6%81%E7%94%A8%20Try()%20%E8%AF%AD%E5%8F%A5%E6%8B%AC%E8%B5%B7%E6%9D%A5%EF%BC%8C%E4%BB%A5%E9%81%BF%E5%85%8D%E5%9C%A8%E8%AF%A5%E5%88%97%E4%B8%8D%E5%AD%98%E5%9C%A8%E6%97%B6%E8%84%9A%E6%9C%AC%E5%81%9C%E6%AD%A2%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20Open(%20%22%24sample_data%5CBig%20Class.jmp%22%20)%3B%0A%20%0Anew_column%20%3D%20%22BMI%22%3B%0A%20%0AIf(%20Is%20Missing(%20Is%20Scriptable(%20Try(%20Column(%20new_column%20)%20)%20)%20)%2C%0A%20dt%20%26lt%3B%26lt%3B%20New%20Column(%20new_column%2C%20numeric%2C%20continuous%2C%20formula(%20703%20*%20%3Aweight%20%2F%20%3Aheight%20%2F%20%3Aheight%20)%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%20color%3A%20%23a70096%3B%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6271%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%88%A4%E6%96%AD%E5%88%97%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6271%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%20style%3D%22font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20background-color%3A%20%23ffffff%3B%22%3E%3CSPAN%20style%3D%22font-style%3A%20inherit%3B%20font-size%3A%2010pt%3B%20font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%E6%88%91%E4%B8%8D%E7%A1%AE%E5%AE%9A%20JMP%20%E7%9A%84%E6%89%80%E6%9C%89%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E6%98%AF%E5%90%A6%E9%83%BD%E6%98%AF%E5%A6%82%E6%AD%A4%E3%80%82%20%E6%88%91%E5%8F%91%E8%A1%A8%E6%AD%A4%E8%AF%84%E8%AE%BA%E5%8F%AA%E6%98%AF%E4%B8%BA%E4%BA%86%E5%BC%BA%E8%B0%83%E6%8F%90%E9%AB%98%E4%BB%A3%E7%A0%81%E7%A8%B3%E5%81%A5%E6%80%A7%E7%9A%84%E6%9C%BA%E4%BC%9A%E3%80%82%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20background-color%3A%20%23ffffff%3B%22%3E%3CSPAN%20style%3D%22font-style%3A%20inherit%3B%20font-size%3A%2010pt%3B%20font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20background-color%3A%20%23ffffff%3B%22%3E%3CSPAN%20style%3D%22font-style%3A%20inherit%3B%20font-size%3A%2010pt%3B%20font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%E2%80%9CContains%E2%80%9D%E8%BF%94%E5%9B%9E%E9%A1%B9%E7%9B%AE%E7%9A%84%E4%BD%8D%E7%BD%AE%EF%BC%8C%E8%BF%99%E5%8F%AF%E4%BB%A5%E5%9C%A8%E2%80%9Cif%E2%80%9D%E8%AF%AD%E5%8F%A5%E4%B8%AD%E4%BD%BF%E7%94%A8%EF%BC%8C%E5%9B%A0%E4%B8%BA%E9%9B%B6%E5%B0%86%E8%A2%AB%E8%A7%A3%E9%87%8A%E4%B8%BA%20false%EF%BC%8C%E6%AD%A3%E5%80%BC%E5%B0%86%E8%A2%AB%E8%A7%A3%E9%87%8A%E4%B8%BA%20true%E3%80%82%20%E5%BD%93%20contains%20%E5%89%8D%E9%9D%A2%E5%B8%A6%E6%9C%89%20not%20'!'%20%E6%97%B6%EF%BC%8C%E8%AF%A5%E6%9D%A1%E4%BB%B6%E5%9C%A8%E8%AF%A5%E9%A1%B9%E4%B8%8D%E5%AD%98%E5%9C%A8%E6%88%96%E4%BD%9C%E4%B8%BA%E7%AC%AC%E4%B8%80%E9%A1%B9%E5%AD%98%E5%9C%A8%E6%97%B6%E8%B5%B7%E4%BD%9C%E7%94%A8%EF%BC%9B%E4%BD%86%E6%98%AF%EF%BC%8C%E5%BD%93%E8%AF%A5%E9%A1%B9%E7%9B%AE%E4%B8%8D%E6%98%AF%E7%AC%AC%E4%B8%80%E4%B8%AA%EF%BC%88%E5%80%BC%E5%A4%A7%E4%BA%8E%201%20%EF%BC%89%E6%97%B6%EF%BC%8Cnot%20'!'%E5%8F%AF%E8%83%BD%E6%97%A0%E6%B3%95%E5%B0%86%E6%9D%A1%E4%BB%B6%E8%BD%AC%E6%8D%A2%E4%B8%BA%20false%E3%80%82%20%E8%BF%99%E5%8F%AF%E4%BB%A5%E9%80%9A%E8%BF%87%E4%BD%BF%E7%94%A8%E2%80%9C%26gt%3B0%E2%80%9D%E4%B8%8E%E2%80%9C%E5%8C%85%E5%90%AB%E2%80%9D%E8%BF%9B%E8%A1%8C%E6%AF%94%E8%BE%83%E6%9D%A5%E9%81%BF%E5%85%8D%E3%80%82%20%E8%AF%B7%E5%8F%82%E9%98%85%E4%B8%8B%E9%9D%A2%E7%9A%84%E8%AF%AD%E6%B3%95%E3%80%82%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20Open(%20%22%24sample_data%5CBig%20Class.jmp%22%20)%3B%0A%20%0Acol_name_list%20%3D%20dt%20%26lt%3B%26lt%3B%20get%20column%20names(%20string%20)%3B%0A%20%0Anew_column%20%3D%20%22BMI%22%3B%0A%20%0A%2F%2F%20English%20BMI%20Formula%0A%2F%2F%20BMI%20%3D%20(%20Weight%20in%20Pounds%20%2F%20(%20Height%20in%20inches%20x%20Height%20in%20inches%20)%20)%20x%20703%0A%20%0AIf(%20!(Contains(%20col_name_list%2C%20new_column%20)%20%26gt%3B%200)%2C%0A%20dt%20%26lt%3B%26lt%3B%20New%20Column(%20%22BMI%22%2C%20numeric%2C%20continuous%2C%20formula(%20703%20*%20%3Aweight%20%2F%20%3Aheight%20%2F%20%3Aheight%20)%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%20style%3D%22font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20background-color%3A%20%23ffffff%3B%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6270%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%88%A4%E6%96%AD%E5%88%97%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6270%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E8%B0%A2%E8%B0%A2%EF%BC%8C%E8%BF%99%E5%AF%B9%E6%88%91%E6%9D%A5%E8%AF%B4%E6%95%88%E6%9E%9C%E5%BE%88%E5%A5%BD%E3%80%82%20%E6%88%91%E6%9C%AC%E6%9D%A5%E5%B8%8C%E6%9C%9B%E6%89%BE%E5%88%B0%E4%B8%80%E4%B8%AA%E5%87%BD%E6%95%B0%E6%9D%A5%E6%A3%80%E6%9F%A5%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%EF%BC%8C%E4%BD%86%E8%BF%99%E6%9C%89%E6%95%88%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6269%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%88%A4%E6%96%AD%E5%88%97%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6269%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%20style%3D%22margin-bottom%3A%200.0001pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20open(%22%24sample_data%5CBig%20Class.jmp%22)%3B%0A%20%0Acol_name_list%20%3D%20dt%20%26lt%3B%26lt%3B%20get%20column%20names(string)%3B%0A%20%0Anew_column%20%3D%20%22BMI%22%3B%0A%20%0A%2F%2F%20English%20BMI%20Formula%0A%2F%2F%20BMI%20%3D%20(%20Weight%20in%20Pounds%20%2F%20(%20Height%20in%20inches%20x%20Height%20in%20inches%20)%20)%20x%20703%0A%20%0Aif%20(!contains(col_name_list%2C%20new_column)%2C%0A%20%20%20%20%20%20dt%20%26lt%3B%3CNEW%20column%3D%22%22%3E%3C%2FNEW%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
mwechtal
Level III

Determining if a column exists

I have a JMP script that creates a new column with a formula in it. I'm trying to find out how to detect if the column already exists so that I can skip creating it, and avoid generating extra columns. I'm sure it's there, but I'm not finding it in the literature that I have.

Thanks.

Mike

10 REPLIES 10
wiebepo
Level III

Re: Determining if a column exists

PMroz,

Let me start by confirming that the code you wrote worked for me as well, and the explaination I wrote is not consistent with JMP 9 or 10 behavior.

After reading your reply, I also tried several different combinations of contains, and if statements with lists, string, and numbers in JMP 9 and 10. Although my attempts were not exhaustive, all of my results are consistent with yours. Initially, when I read your first post I recalled some troubleshooting that I had perform years prior where I had adopted the the use of contains()>0. I am unable to recreate the scenario; however, I did find the following information in the JMP scripting guide. It details using contains with >0, which may be appropriate for their example, but does not explicitly state that it is or is not required.

Page 136 of the JMP scripting guide version 10:

"To assess whether an item is in a list, use Loc() and Contains() with >0. A returned value of zero

means that the item is not in the list. A returned value of 1 means that the item is in the list at least once."

...

"Find out if the number 5 exists in the numList:

NRow(Loc(numList, 5)) >0;

0

Contains(numList, 5) >0;

0"

Hope this helps.