StataFile.ReadDataFrame Method

Definition

Namespace: Extreme.Data.Stata
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0

Overload List

ReadDataFrame(Stream) Reads a data frame from a stream in stata® format.
ReadDataFrame(String) Reads a data frame from a Stata file.
ReadDataFrame<R, C>(String) Reads a data frame from a Stata file.

ReadDataFrame(Stream)

Reads a data frame from a stream in stata® format.
C#
public static DataFrame<long, string> ReadDataFrame(
	Stream stream
)

Parameters

stream  Stream
The Stream the data is to be read from.

Return Value

DataFrame<Int64, String>

ReadDataFrame(String)

Reads a data frame from a Stata file.
C#
public static DataFrame<long, string> ReadDataFrame(
	string path
)

Parameters

path  String
The path to the data file.

Return Value

DataFrame<Int64, String>
A data frame containing the data in the file specified by path.

Exceptions

ArgumentNullExceptionpath is null.
IOExceptionThe file specified by path does not exist.

ReadDataFrame<R, C>(String)

Reads a data frame from a Stata file.
C#
public static DataFrame<R, C> ReadDataFrame<R, C>(
	string path
)

Parameters

path  String
The path to the data file.

Type Parameters

R
C

Return Value

DataFrame<R, C>
A data frame containing the data in the file specified by path.

Exceptions

ArgumentNullExceptionpath is null.
IOExceptionThe file specified by path does not exist.

See Also