Adds the given DataColumn and accompanying data to this data frame.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public DataFrame AddColumn(
	DataColumn column,
	DataRowCollection rows
)
Visual Basic (Declaration)
Public Function AddColumn ( _
	column As DataColumn, _
	rows As DataRowCollection _
) As DataFrame
Visual C++
public:
DataFrame^ AddColumn(
	DataColumn^ column, 
	DataRowCollection^ rows
)

Parameters

column
Type: System.Data..::.DataColumn
A DataColumn.
rows
Type: System.Data..::.DataRowCollection
A DataRowCollection containing data for this column.

Return Value

This data frame.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if the number of columns in the DataRowCollection is not equal to one, or if the DataRowCollection does not contain the same number of rows as this data fra.

See Also