Reads a data frame from a file 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>(
string path,
int[] columnBreaks,
string keyColumn,
bool dropKeyColumn = true
)
Public Shared Function ReadDataFrame(Of R) (
path As String,
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(
String^ path,
array<int>^ columnBreaks,
String^ keyColumn,
bool dropKeyColumn = true
)
static member ReadDataFrame :
path : string *
columnBreaks : int[] *
keyColumn : string *
?dropKeyColumn : bool
(* Defaults:
let _dropKeyColumn = defaultArg dropKeyColumn true
*)
-> DataFrame<'R, string>
Parameters
- path
- Type: SystemString
The path to the file. - 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
path.
Reference