Object Reference : Object View and Procedure Reference : Vector
Excel Files
Excel Examples
HTML Files
HTML Examples
Text and Binary Files
Text and Binary File Examples (.txt, .csv, etc.)
Vector. (One dimensional array of numbers).
Vector Declaration
vector declare vector object.
There are several ways to create a vector object. Enter the vector keyword (with an optional dimension) followed by a name:
vector scalarmat
vector(10) results
Alternatively, you may declare a vector using an assignment statement. The vector will be sized and initialized, accordingly:
vector(10) myvec = 3.14159
vector results = vec1
Vector Views
cov compute variance measures for the data in the vector.
label label information for the vector object.
sheet spreadsheet view of the vector.
stats descriptive statistics.
Vector Graph Views
Graph creation views are discussed in detail in “Graph Creation Command Summary”.
area area graph of the vector.
bar bar graph of data against the row index.
boxplot boxplot graph.
distplot distribution graph.
dot dot plot graph.
line line graph of the data against the row index.
qqplot quantile-quantile graph.
seasplot seasonal line graph.
spike spike graph.
Vector Procs
clearhist clear the contents of the history attribute.
displayname set display name.
fill fill elements of the vector.
getglobalc copy the contents of the workfile C coefficient vector into the vector object.
olepush push updates to OLE linked objects in open applications .
read (deprecated) import data from disk.
setattr set the value of an object attribute .
setformat set the display format for the vector spreadsheet.
setglobalc copy the contents of the vector object into the workfile C coefficient vector.
setindent set the indentation for the vector spreadsheet.
setjust set the justification for the vector spreadsheet.
setwidth set the column width for the vector spreadsheet.
write export data to disk.
Vector Data Members
String values
@attr(“arg”) string containing the value of the arg attribute, where the argument is specified as a quoted string.
@collabels string containing the column label of the vector.
@description string containing the Vector object’s description (if available).
@detailedtype string with the object type: “VECTOR”.
@displayname string containing the Vector object’s display name. If the Vector has no display name set, the name is returned.
@name string containing the Vector object’s name.
@remarks string containing the Vector object’s remarks (if available).
@rowlabels string containing the row labels of the vector.
@source string containing the Vector object’s source (if available).
@type string with the object type: “VECTOR”.
@units string containing the Vector object’s units description (if available).
@updatetime string representation of the time and date at which the Vector was last updated.
Scalar values
(i) i-th element of the vector. Simply append “(i)” to the vector name (without a “.”).
@rows number of rows in the matrix.
Vector values
@droprow(i) Returns the vector with the i-th row removed. i may be a vector of integers, in which case multiple rows are removed.