Description Details Public fields Active bindings Methods
CaliperMatrix class
CaliperMatrix class
This class makes it easier to interact with Caliper matrices in R.
See vignette("caliper-matrices") for more details on interacting with
matrices. This includes info on S3 methods for bringing them into R formats
like data.frames and as.matrix.
handleThis is a COM pointer and represents the object in Caliper software.
coresThis is a named list of cores. Each element contains a
MatrixCurrency-class.
indicesThis lists the row and column indices available for the matrix.
row_indexThis can be used to retrieve or set the current row index.
column_indexThis can be used to retrieve or set the current column index.
new()Create a new CaliperMatrix object.
CaliperMatrix$new(matrix)
matrixEither the file path to the matrix (.mtx) or a COM pointer to the matrix handle.
a new CaliperMatrix object.
create_index_info()Sets the indices field of the CaliperMatrix.
CaliperMatrix$create_index_info()
create_core_list()Sets the cores field of the CaliperMatrix.
CaliperMatrix$create_core_list()
update_gisdk_data()Sends R data back to the matrix in Caliper software.
CaliperMatrix$update_gisdk_data(core_name, data)
core_namestring The name of the core to update.
datamatrix of data.
CreateCore()Create a new core in the matrix.
CaliperMatrix$CreateCore(core_name)
core_namestring The name of the core to create.
CreateIndex()Create a new index.
CaliperMatrix$CreateIndex(
index_name,
current_ids,
new_ids = NULL,
index_type = c("both", "row", "column")
)index_namestring The name of the new index.
current_idsvector of the row/column IDs to include in new
index.
new_idsvector Use this to assign new IDs to the rows/columns
of this index if desired.
index_typestring Whether the index can be applied to rows,
column, or (the default) both.
clone()The objects of this class are cloneable with this method.
CaliperMatrix$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.