as_sptensor: Convert objects to sparse tensors

Description Usage Arguments

Description

Convert objects to sparse tensors

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
as_sptensor(x, ...)

## S4 method for signature 'sptensor'
as_sptensor(x)

## S4 method for signature 'dtensor'
as_sptensor(x)

## S4 method for signature 'data.frame'
as_sptensor(x, valcol = NULL, dims = NULL)

Arguments

x

object

...

extra params

valcol

column to use for the tensor values. all other columns are treated as indices

dims

dimensions of tensor. If not provided, the maximum value for each of the indices is used.


tensorr documentation built on May 2, 2019, 3:26 a.m.