LinqExtensions.Concat Method

Definition

Namespace: Numerics.NET.DataAnalysis.Linq
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

Concat<T>(Vector<T>, Vector<T>) Concatenates two vectors.
Concat<R, C>(DataFrame<R, C>, DataFrame<R, C>) Appends two data frames.

Concat<R, C>(DataFrame<R, C>, DataFrame<R, C>)

Appends two data frames.
C#
public static DataFrame<R, C> Concat<R, C>(
	this DataFrame<R, C> frame,
	DataFrame<R, C> second
)

Parameters

frame  DataFrame<R, C>
A data frame.
second  DataFrame<R, C>
The data frame to append.

Type Parameters

R
The element type of the row index of the data frame.
C
The element type of the column index of the data frame.

Return Value

DataFrame<R, C>
A new data frame that is the concatenation of frame and second.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataFrame<R, C>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Concat<T>(Vector<T>, Vector<T>)

Concatenates two vectors.
C#
public static Vector<T> Concat<T>(
	this Vector<T> first,
	Vector<T> second
)

Parameters

first  Vector<T>
The first vector.
second  Vector<T>
The second vector.

Type Parameters

T
The element type of the vectors.

Return Value

Vector<T>
A vector that contains the elements of first followed by the elements of second.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentNullException

first is null.

-or-

second is null.

See Also