Learn R Programming

sparsebnUtils (version 0.0.8)

as.sparse: as.sparse

Description

Methods for coercing other R objects to sparse objects.

Usage

as.sparse(x, index = "R", ...)

Arguments

x

A compatible R object.

index

"R" or "C", depending on whether to use R- or C-style indexing.

...

other parameters.

Value

sparse