fm.conv.R2FMR Documentation

Convert a regular R object to a FlashR object.

Description

If the R object is a matrix, byrow determines how data in the generated FlashR object is organized in memory.

Usage

fm.conv.R2FM(obj, byrow = FALSE)

Arguments

obj

a regular R object

byrow

a logical value to determine the data layout of a FlashR matrix.

Value

a FlashR object. If the input R object has 0 element, fm.conv.R2FM returns NULL.

Author(s)

Da Zheng <dzheng5@jhu.edu>

Examples

vec <- fm.conv.R2FM(runif(100))
mat <- fm.conv.R2FM(matrix(runif(100), 100, 2))