-
Notifications
You must be signed in to change notification settings - Fork 2
Language: Rename Statement
Maurice HT Ling edited this page Dec 6, 2015
·
3 revisions
Rename an object or a series/label name within a data frame.
Syntax:
-
RENAME SERIES IN ID FROM id_value TO id_value: Renaming a series name within a data frame.
-
RENAME LABELS IN ID FROM id_value TO id_value: Renaming a label name within a data frame.
where
- ID is the name of object or data frame
- id_value is the name to be changed
Example:
# Set relative current working directory and load a CSV file
set rcwd data
load csv STI_2015.csv as STI
# Renaming 'Open' series in STI from 'Open' to 'OpenDup'
rename series in STI from Open to OpenDup
# Renaming '1/11/1988' label in STI from '1/11/1988' to 'dummydate'
rename labels in STI from '1/11/1988' to dummydate
- Bytecodes generated are:
- renameseries
- renamelabels
Copyright (c) 2015, Maurice HT Ling on behalf of all authors and TAPPS Development Team.