Vector

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.

setglobalc copy the contents of the vector object into the workfile C coefficient vector.

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.