Statistics - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Statistics

 Join
 join data samples

 Calling Sequence Join(X, options)

Parameters

 X - list of data sets options - (optional) equation(s) of the form $\mathrm{outputoptions}=\mathrm{value}$; specify options for the Join function

Description

 • The Join command joins the specified data into a single one- or two-dimensional data sample.
 • The first parameter X is the list of samples; each element of this list must be an rtable (such as a Matrix or Vector) or a list. Multi-dimensional data sets will generally be converted to one-dimensional. The exception is when each data set is two-dimensional and they all have equally many columns; in that case, all data sets are put underneath each other in a Matrix.

Options

 The options argument can contain one or more of the options shown be low.
 • outputoptions=list -- This option provides additional rtable_options to the rtable constructor that builds the result. The supported options are datatype, attributes, and readonly; the subtype option is supported if it doesn't conflict with the dimension of the result.

Examples

 > $\mathrm{with}\left(\mathrm{Statistics}\right):$
 > $A≔\mathrm{Array}\left(\left[1,2,3,4,5\right]\right)$
 ${A}{:=}\left[\begin{array}{ccccc}{1}& {2}& {3}& {4}& {5}\end{array}\right]$ (1)
 > $B≔\mathrm{Array}\left(\left[\mathrm{sin}\left(1\right),\mathrm{sin}\left(2\right),\mathrm{sin}\left(3\right)\right]\right)$
 ${B}{:=}\left[\begin{array}{ccc}{\mathrm{sin}}{}\left({1}\right)& {\mathrm{sin}}{}\left({2}\right)& {\mathrm{sin}}{}\left({3}\right)\end{array}\right]$ (2)
 > $C≔⟨⟨x,y,z⟩|⟨t,u,v⟩⟩$
 ${C}{:=}\left[\begin{array}{cc}{x}& {t}\\ {y}& {u}\\ {z}& {v}\end{array}\right]$ (3)
 > $\mathrm{interface}\left(\mathrm{rtablesize}=15\right):$
 > $\mathrm{Join}\left(\left[A,B,C\right],\mathrm{outputoptions}=\left[\mathrm{subtype}=\mathrm{Vector}[\mathrm{column}]\right]\right)$
 $\left[\begin{array}{c}{\mathrm{1 .. 14}}{{\mathrm{Vector}}}_{{\mathrm{column}}}\\ {\mathrm{Data Type:}}{\mathrm{anything}}\\ {\mathrm{Storage:}}{\mathrm{rectangular}}\\ {\mathrm{Order:}}{\mathrm{Fortran_order}}\end{array}\right]$ (4)
 > $U≔\left[\left[1,2\right],\left[2,3\right]\right]$
 ${U}{:=}\left[\left[{1}{,}{2}\right]{,}\left[{2}{,}{3}\right]\right]$ (5)
 > $V≔\mathrm{Matrix}\left(3,2,\left(i,j\right)→i+j+1\right)$
 ${V}{:=}\left[\begin{array}{rr}{3}& {4}\\ {4}& {5}\\ {5}& {6}\end{array}\right]$ (6)
 > $\mathrm{Join}\left(\left[U,V\right],\mathrm{outputoptions}=\left[\mathrm{readonly},\mathrm{datatype}=\mathrm{float}\right]\right)$
 $\left[\begin{array}{cc}{1.}& {2.}\\ {2.}& {3.}\\ {3.}& {4.}\\ {4.}& {5.}\\ {5.}& {6.}\end{array}\right]$ (7)

Compatibility

 • The X parameter was updated in Maple 16.

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam