Projects each row of a data frame into a value.
Namespace:
Extreme.DataAnalysis.Linq
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<TResult> Select<R, C, TResult>(
this DataFrame<R, C> frame,
Func<DataFrameRow<R, C>, TResult> selector
)
<ExtensionAttribute>
Public Shared Function Select(Of R, C, TResult) (
frame As DataFrame(Of R, C),
selector As Func(Of DataFrameRow(Of R, C), TResult)
) As Vector(Of TResult)
public:
[ExtensionAttribute]
generic<typename R, typename C, typename TResult>
static Vector<TResult>^ Select(
DataFrame<R, C>^ frame,
Func<DataFrameRow<R, C>^, TResult>^ selector
)
[<ExtensionAttribute>]
static member Select :
frame : DataFrame<'R, 'C> *
selector : Func<DataFrameRow<'R, 'C>, 'TResult> -> Vector<'TResult>
Parameters
- frame
- Type: Extreme.DataAnalysisDataFrameR, C
A data frame to invoke a transform function on. - selector
- Type: SystemFuncDataFrameRowR, C, TResult
A function to apply to each row.
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.
- TResult
- The type of the value returned by selector.
Return Value
Type:
VectorTResultA vector whose elements are the result of invoking
selector
on each row of the data frame.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DataFrameR,
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).
Reference