values.from.sparse.array: Create values from sparse array

View source: R/values-functions.R

values.from.sparse.arrayR Documentation

Create values from sparse array

Description

Create a values object from a sparse array.

Usage

values.from.sparse.array(sparse.array, variables = NULL, x, y, z)

Arguments

sparse.array

The sparse array. Note: the sparse array is a dataframe containing at least the following columns: 'voxel.index' and 'value'. Optionally it could contain also the column 'variable'. The latter is mandatory if there are multiple variables.

variables

The name of the variable(s). If there is only one variable specified and the sparse array dose not contain the column "variable", it is assumed that all the value correspond to the specified variable. It it is NULL, the values object will contains all the variable found in the sparse array.

Value

Values object. Note: the sparse array is a dataframe containing at least the following columns: 'voxel.index' and 'value'

See Also

Other Values: combine.values, create.values, dataframe.from.values, get.sparse.array.gate, get.values.dataframe, get.values.gate.plan, get.values.list, get.values.plankit.plan, get.values, merge.values, sanitize.values, sparse.array.from.values, threshold.values


planit-group/Rplanit documentation built on Dec. 5, 2022, 11:10 p.m.