|
WRITE EXCELName:
Dataplot does not natively support reading or writing to Excel format files. The WRITE EXCEL command works as follows
This command assumes that Python and the Python package Pandas are already installed on your local platform. Dataplot does not check if Python is installed and it does not initiate the Python installation if it is not already installed. As Python is used by many popular applications on Linux platforms, most Linux platforms will already have Python installed. However, this is not the case for Windows and MacOS platforms. If you need to install Python, there are a number of Python distributions (see https://wiki.python.org/moin/PythonDistributions). However, the most common are ActivePython from ActiveState and Anaconda from Continuum Analytics. Dataplot does not depend on a specific Python distribution and we make no recommendation for the preferred distribution. If you infrequently need to write Excel files and do not already have Python installed on your local platform, it may be simpler to write the Dataplot files to an ASCII file with the WRITE command and then import the ASCII file within the spreadsheet program. However, if you anticipate the need for frequently writing Dataplot generated data to a spreadsheet, then going through the Python installation is probably worth the effort.
<SUBSET/EXCEPT/FOR qualification> where <fname> is the name of the Excel file to write to; <variable list> is a list of variables to write; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
WRITE EXCEL FILE.XLSX Y1 Y2 Y3 X SUBSET X > 0
There are several different Python distributions. The appropriate Python path will depend on the specific distribution you used to install Python and whether you choose to install it for a single user or for all users.
rm dpzchf.dat . SET CONVERT CHARACTER ON READ IMONTH VALUE1 VALUE2 VALUE3 January 21205 1 100 February 19867 2 200 March 24991 3 300 April 16523 4 400 May 17341 5 500 June 27912 6 600 July 29105 7 700 August 28766 8 800 September 23332 9 900 October 20211 10 1000 November 18298 11 1100 December 13112 12 1200 END OF DATA . write excel test.xlsx imonth value1 value2 value3 list excel test.xlsx
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 02/20/2020 |