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
.
handle
This is a COM pointer and represents the object in Caliper software.
cores
This is a named list of cores. Each element contains a
MatrixCurrency-class
.
indices
This lists the row and column indices available for the matrix.
row_index
This can be used to retrieve or set the current row index.
column_index
This can be used to retrieve or set the current column index.
new()
Create a new CaliperMatrix
object.
CaliperMatrix$new(matrix)
matrix
Either 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_name
string
The name of the core to update.
data
matrix
of data.
CreateCore()
Create a new core in the matrix.
CaliperMatrix$CreateCore(core_name)
core_name
string
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_name
string
The name of the new index.
current_ids
vector
of the row/column IDs to include in new
index.
new_ids
vector
Use this to assign new IDs to the rows/columns
of this index if desired.
index_type
string
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)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.