deserializeDataFrame {raven.rdf}R Documentation

Deserializes the given vector of raw bytes and returns a data.frame object.

Description

The raw vector to be deserialized must represent a Raven DataFrame. That DataFrame is returned as an R data.frame object.

Usage

deserializeDataFrame(bytes)

Arguments

bytes

The vector of raw bytes to deserialize

Details

The column types from Raven DataFrames are mapped to the corresponding R types. More specifically, all integer types (byte, short, int, long) are mapped to the R 'integer' type. The floating point types (float, double) are mapped to the R 'double' type. Both string and char types are mapped to the R 'character' type. Booleans are mapped to the R 'logical' type. Binary columns are represented as R 'list' types containing raw vectors.

Value

A data.frame object from the specified raw vector

See Also

readDataFrame() for reading DataFrame (.df) files directly.

Examples

## Not run: 
# deserialize a raw vector representing a DataFrame
df <- deserializeDataFrame(my.raw.vector)

# get the types for all columns
types <- sapply(df, typeof)

## End(Not run)


[Package raven.rdf version 0.2.0 Index]