Object Reference : Object View and Procedure Reference : Rowvector
  
Rowvector
 
clearhist
display
displayname
fill
import
Excel Files
Excel Examples
HTML Files
HTML Examples
Text and Binary Files
Text and Binary File Examples (.txt, .csv, etc.)
label
olepush
read
rowvector
setattr
setformat
setindent
setjust
setwidth
sheet
stats
write
Row vector. (One dimensional array of numbers).
Rowvector Declaration
rowvector declare rowvector object.
There are several ways to create a rowvector object. First, you can enter the rowvector keyword (with an optional dimension) followed by a name:
rowvector scalarmat
rowvector(10) results
The resulting rowvector will be initialized with zeros.
Alternatively, you may combine a declaration with an assignment statement. The new vector will be sized and initialized accordingly:
rowvector(10) y=3
rowvector z=results
Rowvector Views
display display table, graph, or spool in object window.
label label information for the rowvector.
sheet spreadsheet view of the vector.
stats (trivial) descriptive statistics.
Rowvector Graph Views
Graph creation views are discussed in detail in “Graph Creation Command Summary”.
bar bar graph of each column (element) of the data against the row index.
boxplot boxplot graph.
distplot distribution graph.
dot dot plot graph.
errbar error bar graph view.
mixed mixed-type graph.
pie pie chart view.
qqplot quantile-quantile graph.
scat scatter diagrams of the columns of the rowvector.
scatmat matrix of all pairwise scatter plots.
scatpair scatterplot pairs graph.
seasplot seasonal line graph of the columns of the rowvector.
spike spike graph.
xybar XY bar graph.
xypair XY pairs graph.
Rowvector Procs
clearhist clear the contents of the history attribute.
displayname set display name.
fill fill elements of the vector.
import imports data from a foreign file 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.
setindent set the indentation for the vector spreadsheet.
setjust set the justification for the vector spreadsheet.
setwidth set the column width in the vector spreadsheet.
write export data to disk.
Rowvector 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 labels of the rowvector.
@description string containing the Rowvector object’s description (if available).
@detailedtype string with the object type: “ROWVECTOR”.
@displayname string containing the Rowvector object’s display name. If the Rowvector has no display name set, the name is returned.
@name string containing the Rowvector object’s name.
@remarks string containing the Rowvector object’s remarks (if available).
@rowlabels string containing the row label of the rowvector.
@source string containing the Rowvector object’s source (if available).
@type string with the object type: “ROWVECTOR”.
@units string containing the Rowvector object’s units description (if available).
@updatetime string representation of the time and date at which the Rowvector was last updated.
Scalar values
(i) i-th element of the vector. Simply append “(i)” to the matrix name (without a “.”).
@cols number of columns in the matrix.
Vector values
@dropcol(i) Returns the rowvector with the i-th row removed. i may be a vector of integers, in which case multiple rows are removed.
Rowvector Examples
To declare a rowvector and to fill it with data read from an Excel file:
rowvector(10) mydata
mydata.read(b2) thedata.xls
To access a single element of the vector using direct indexing:
scalar result1=mydata(2)
The rowvector may be used in standard matrix expressions:
vector transdata=@transpose(mydata)