cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to move from signal modeling to system modeling at the first JMP Aerospace Analytics webinar. Register. June 18, 1 p.m. US Eastern Time.

Learning Library

Choose Language Hide Translation Bar
Example: Importing a Text File

Let's look at an example. Suppose you have a text file that specifies the column names on the first line and then follows with a row of data on each of the subsequent lines. The values are separated by a character- in this case, a comma. JMP is likely to recognize this common format without help from you but you can force the correct format with optional arguments. The End of Field argument specifies the name of the character that separates the values. The Labels argument is a Boolean value that indicates the presence or absence of the column names in the first row with a or respectively. Some non-standard text formats require additional scripting in order to correctly parse the text into data -- they may not be able to be imported directly into a JMP data table. You can use the Load Text File function to store the text in a variable as a string, and then process the string with the JSL character functions. You can also save text strings that your script creates using the Save Text File function.

Recommended Articles