length.VoxelSpace {AMAPVox}R Documentation

Length of a VoxelSpace

Description

Get the number of voxels in the voxel space.

Retrieve the dimension of a VoxelSpace-class

Usage

## S3 method for class 'VoxelSpace'
length(x)

## S3 method for class 'VoxelSpace'
dim(x)

Arguments

x

a VoxelSpace-class object.

Value

the number of voxels in the voxel space.

the number of voxels nx, ny, nz of a VoxelSpace-class along x, y, z axis.

Warning

AMAPVox allows to discard empty voxels in the voxel file. In such case length.VoxelSpace will return the expected number of voxels as if none were missing. As a consequence the number of voxels stored in the VoxelSpace-class object may be inferior to the returned value, namely nrow(x@voxels) <= length(x)


[Package AMAPVox version 0.1.0 Index]