add_data.sgldata: Add data to a sgldata data object

Description Usage Arguments Author(s) See Also

Description

Addes a data to a sgldata data object

Usage

1
2
3
## S3 method for class 'sgldata'
add_data(data, x, name, default = NULL,
  type = element_class(x), sparse = is(x, "sparseMatrix"), ...)

Arguments

data

sgldata object

x

matrix or vector,

name

name of the data object

default

default value, returned if x is null

type

data type, 'numeric' or 'integer'

sparse

if TRUE y will be treated as sparse, if FALSE y will be treated as dens.

...

not used

Author(s)

Martin Vincent

See Also

Other sgldata: create.sgldata, prepare.args.sgldata, prepare.args, prepare_data, rearrange.sgldata, subsample.sgldata


sglOptim documentation built on May 8, 2019, 1:02 a.m.