-
Notifications
You must be signed in to change notification settings - Fork 2
Language: Load Statement
Maurice HT Ling edited this page Dec 6, 2015
·
3 revisions
Loading data from an external file.
Syntax:
-
LOAD CSV FILENAME AS ID: Loading a comma-separated value (CSV) file, with series names as header, as a data frame object.
-
LOAD NOHEADER CSV FILENAME AS ID: Loading a comma-separated value (CSV) file, without series names as header, as a data frame object.
-
LOAD SESSION FROM FILENAME: Loading a previously saved session.
where
- ID is the object where external data is to be loaded into
- FILENAME is the external file containing the data to be loaded
Example:
# Set relative current working directory and load a CSV file
set rcwd data
load csv STI_2015.csv as STI
# Save the current session
save session as example_session.txt
# Load a previously saved session
load session from example05.txt
- Bytecodes generated are:
- loadcsv1
- loadcsv2
- loadsession
Copyright (c) 2015, Maurice HT Ling on behalf of all authors and TAPPS Development Team.