R/Classes.R

#' @title VoxelSpace
#' @description Class that holds the state variables of every voxel of the voxel
#'   space in a [`data.table::data.table-class`] object, plus metadata from the
#'   voxel space header.
#' @docType class
#' @slot file the path of the voxel file (.vox).
#' @slot data the voxels hold in a data.table.
#' @slot header a list of parameters associated to this voxel file.
#' @return An object of class VoxelSpace.
#' @seealso [readVoxelSpace()]
#' @name VoxelSpace-class
#' @rdname VoxelSpace-class
#' @export
setClass(

  Class="VoxelSpace",
  slots=c(
    file="character",
    data="data.table",
    header="list"
  )
)

Try the AMAPVox package in your browser

Any scripts or data that you put into this service are public.

AMAPVox documentation built on July 9, 2023, 5:32 p.m.