writeVoxelSpace {AMAPVox}R Documentation

Write a voxel file

Description

write a voxel file out of a VoxelSpace-class object.

Usage

writeVoxelSpace(voxelSpace, outputFile)

Arguments

voxelSpace

the object of class VoxelSpace to write

outputFile

The path where to write the voxel file.

See Also

readVoxelSpace

Examples

## Not run: 
# load a voxel file
vox <- readVoxelSpace(system.file("extdata", "als_sample.vox", package = "AMAPVox"))
# set max PAD to 5
vox@voxels[, PadBVTotal:=max(PadBVTotal, 5, na.rm = TRUE)]
# write updated voxel file
writeVoxelSpace(vox, tempfile("pattern"="amapvox_", fileext=".vox"))

## End(Not run)

[Package AMAPVox version 0.1.0 Index]