Object Reference : Object View and Procedure Reference : Rowvector
  
Rowvector
 
clearcollabels
clearhist
clearremarks
clearrowlabels
copy
display
displayname
export
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
resize
rowvector
setattr
setcollabels
setformat
setindent
setjust
setrowlabels
setwidth
sheet
showlabels
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 rowvector 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 rowvector.
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
clearcollabels clear the column labels in a rowvector object.
clearhist clear the contents of the history attribute.
clearremarks clear the contents of the remarks attribute.
clearrowlabels clear the row labels in a rowvector object.
copy creates a copy of the rowvector.
displayname set display name.
export export rowvector as Excel 2007 XLSX, CSV, tab-delimited ASCII text, RTF, HTML, Enhanced Metafile, PDF, TEX, or MD file on disk.
fill fill elements of the rowvector.
import imports data from a foreign file into the rowvector object.
olepush push updates to OLE linked objects in open applications.
read (deprecated) import data from disk.
resize resize the rowvector object.
setattr set the value of an object attribute.
setcollabels set the column labels in a rowvector object.
setformat set the display format for the rowvector spreadsheet.
setindent set the indentation for the rowvector spreadsheet.
setjust set the horizontal justification for all cells in the spreadsheet view of the rowvector object.
setrowlabels set the row label in a rowvector object.
setwidth set the column width in the rowvector spreadsheet.
showlabels displays the custom row and column labels of a rowvector 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.
@type string with the object type: “ROWVECTOR”.
@updatetime string representation of the time and date at which the Rowvector was last updated.
Scalar values
(i) i-th element of the rowvector. Simply append “(i)” to the rowvector name (without a “.”).
@cols number of columns in the rowvector.
Rowvector values
@col(arg) Returns the rowvector defined by arg. arg may be an integer, vector of integers, string, or svector of strings. Integers correspond to column numbers so that, for example, arg = 2 specifies the second column. Strings correspond to column labels so that arg = "2" specifies the first column labeled “2”.
@dropcol(arg) Returns the rowvector with the columns defined by arg removed. arg may be an integer, vector of integers, string, or svector of strings. Integers correspond to column numbers so that, for example, arg = 2 specifies the second column. Strings correspond to column labels so that arg = "2" specifies the first column labeled “2”.
@t Returns transpose.
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 rowvector using direct indexing:
scalar result1=mydata(2)
The rowvector may be used in standard matrix expressions:
vector transdata=@transpose(mydata)