Reads a data frame from a stream in fixed-width text format.
Namespace:
Extreme.Data.Text
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
public static DataFrame<R, string> ReadDataFrame<R>(
Stream stream,
int[] columnBreaks,
string keyColumn,
bool dropKeyColumn = true
)
Public Shared Function ReadDataFrame(Of R) (
stream As Stream,
columnBreaks As Integer(),
keyColumn As String,
Optional dropKeyColumn As Boolean = true
) As DataFrame(Of R, String)
public:
generic<typename R>
static DataFrame<R, String^>^ ReadDataFrame(
Stream^ stream,
array<int>^ columnBreaks,
String^ keyColumn,
bool dropKeyColumn = true
)
static member ReadDataFrame :
stream : Stream *
columnBreaks : int[] *
keyColumn : string *
?dropKeyColumn : bool
(* Defaults:
let _dropKeyColumn = defaultArg dropKeyColumn true
*)
-> DataFrame<'R, string>
Parameters
- stream
- Type: System.IOStream
A stream. - columnBreaks
- Type: SystemInt32
An integer array containing the zero-based indexes of the column breaks on each row. - keyColumn
- Type: SystemString
The name of the column that contains the column keys. - dropKeyColumn (Optional)
- Type: SystemBoolean
If , the key column
is not included in the returned data frame.
Type Parameters
- R
- The element type of the key column.
Return Value
Type:
DataFrameR,
StringThe data frame that was read from the file
pointed to by
stream.
Reference