DataFrame<R, C>.MapAndAppend Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

MapAndAppend(C, Func<IVector, IVector>, C) Applies the specified function to selected columns and appends the results to the end of the data frame.
MapAndAppend(IList<C>, Func<IVector, IVector>, IList<C>) Applies the specified function to selected columns and appends the results to the end of the data frame.
MapAndAppend(IList<C>, Func<IVector, IVector>, Func<C, C>) Applies the specified function to selected columns.
MapAndAppend<T>(C, Func<Vector<T>, IVector>, C) Applies the specified function to selected columns and appends the results to the end of the data frame.
MapAndAppend<T>(IList<C>, Func<Vector<T>, IVector>, IList<C>) Applies the specified function to selected columns and appends the results to the end of the data frame.
MapAndAppend<T>(IList<C>, Func<Vector<T>, IVector>, Func<C, C>) Applies the specified function to selected columns.

MapAndAppend(C, Func<IVector, IVector>, C)

Applies the specified function to selected columns and appends the results to the end of the data frame.
C#
public DataFrame<R, C> MapAndAppend(
	C columnKey,
	Func<IVector, IVector> function,
	C newColumnKey
)

Parameters

columnKey  C
the key of the column to map.
function  Func<IVector, IVector>
The function to apply.
newColumnKey  C
The list of keys of the mapped columns. If this value is null, the original column keys are used.

Return Value

DataFrame<R, C>
A new data frame whose columns are function applied to the column with key in columnKey and column keys specified by newColumnKey.

Exceptions

KeyNotFoundException

One or more of the keys in columnKey could not be found in the column index.

MapAndAppend<T>(C, Func<Vector<T>, IVector>, C)

Applies the specified function to selected columns and appends the results to the end of the data frame.
C#
public DataFrame<R, C> MapAndAppend<T>(
	C columnKey,
	Func<Vector<T>, IVector> function,
	C newColumnKey
)

Parameters

columnKey  C
the key of the column to map.
function  Func<Vector<T>, IVector>
The function to apply.
newColumnKey  C
The list of keys of the mapped columns. If this value is null, the original column keys are used.

Type Parameters

T

Return Value

DataFrame<R, C>
A new data frame whose columns are function applied to the column with key in columnKey and column keys specified by newColumnKey.

Exceptions

KeyNotFoundException

One or more of the keys in columnKey could not be found in the column index.

MapAndAppend(IList<C>, Func<IVector, IVector>, IList<C>)

Applies the specified function to selected columns and appends the results to the end of the data frame.
C#
public DataFrame<R, C> MapAndAppend(
	IList<C> columnKeys,
	Func<IVector, IVector> function,
	IList<C> newColumnKeys
)

Parameters

columnKeys  IList<C>
A list of keys of the columns to map.
function  Func<IVector, IVector>
The function to apply.
newColumnKeys  IList<C>
The list of keys of the mapped columns. If this value is null, the original column keys are used.

Return Value

DataFrame<R, C>
A new data frame whose columns are function applied to the columns with key in columnKeys and column keys specified by newColumnKeys.

Exceptions

KeyNotFoundException

One or more of the keys in columnKeys could not be found in the column index.

MapAndAppend(IList<C>, Func<IVector, IVector>, Func<C, C>)

Applies the specified function to selected columns.
C#
public DataFrame<R, C> MapAndAppend(
	IList<C> columnKeys,
	Func<IVector, IVector> function,
	Func<C, C> keyGenerator
)

Parameters

columnKeys  IList<C>
A list of keys of the columns to map.
function  Func<IVector, IVector>
The function to apply.
keyGenerator  Func<C, C>
A function that maps old column keys to new column keys.

Return Value

DataFrame<R, C>
A new data frame whose columns are function applied to the columns with key in columnKeys and column keys specified by keyGenerator applied to each key in columnKeys.

Exceptions

KeyNotFoundException

One or more of the keys in columnKeys could not be found in the column index.

MapAndAppend<T>(IList<C>, Func<Vector<T>, IVector>, IList<C>)

Applies the specified function to selected columns and appends the results to the end of the data frame.
C#
public DataFrame<R, C> MapAndAppend<T>(
	IList<C> columnKeys,
	Func<Vector<T>, IVector> function,
	IList<C> newColumnKeys
)

Parameters

columnKeys  IList<C>
A list of keys of the columns to map.
function  Func<Vector<T>, IVector>
The function to apply.
newColumnKeys  IList<C>
The list of keys of the mapped columns. If this value is null, the original column keys are used.

Type Parameters

T

Return Value

DataFrame<R, C>
A new data frame whose columns are function applied to the columns with key in columnKeys and column keys specified by newColumnKeys.

Exceptions

KeyNotFoundException

One or more of the keys in columnKeys could not be found in the column index.

MapAndAppend<T>(IList<C>, Func<Vector<T>, IVector>, Func<C, C>)

Applies the specified function to selected columns.
C#
public DataFrame<R, C> MapAndAppend<T>(
	IList<C> columnKeys,
	Func<Vector<T>, IVector> function,
	Func<C, C> keyGenerator
)

Parameters

columnKeys  IList<C>
A list of keys of the columns to map.
function  Func<Vector<T>, IVector>
The function to apply.
keyGenerator  Func<C, C>
A function that maps old column keys to new column keys.

Type Parameters

T

Return Value

DataFrame<R, C>
A new data frame whose columns are function applied to the columns with key in columnKeys and column keys specified by keyGenerator applied to each key in columnKeys.

Exceptions

KeyNotFoundException

One or more of the keys in columnKeys could not be found in the column index.

See Also