add_sample {dataset} R Documentation

Add a data sample into the target sparse sample matrix object

Description

Usage

add_sample(matrix, sample.id, x);

Arguments

matrix

the sparse matrix object. [as UnionMatrix]

sample.id

the row name, unique sample id. [as string]

x

the sample data, should be in format of [feature_name=>value] key-value tuple list. [as list]

Details

Authors

MLkit

Value

this function returns data object of type UnionMatrix.

clr value class

Examples


[Package dataset version 1.0.0.0 Index]