RdsFile.ReadVector<T>(Stream, Boolean) Method

Reads a vector from a stream in R's RDS format.

Definition

Namespace: Extreme.Data.R
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0
C#
public static Vector<T> ReadVector<T>(
	Stream stream,
	bool strict = true
)

Parameters

stream  Stream
A stream.
strict  Boolean  (Optional)
Specifies whether the element type should be matched exactly (true, the default), or whether conversions are allowed (false).

Type Parameters

T
The element type of the vector.

Return Value

Vector<T>
The vector that was read from the stream pointed to by stream.

Remarks

The element type of the stored vector does not have to match the element type of the returned vector. However, casting values from this type to type T must succeed.

See Also