writeVoxelSpace.Rd
write a voxel file out of a VoxelSpace
object.
writeVoxelSpace(vxsp, f)
the object of class VoxelSpace to write
a character string naming a file.
if (FALSE) {
# load a voxel file
vxsp <- readVoxelSpace(system.file("extdata", "tls_sample.vox", package = "AMAPVox"))
# set max PAD to 5
vxsp@data[, PadBVTotal:=sapply(PadBVTotal, min, 5)]
# write updated voxel file in temporary file
writeVoxelSpace(vxsp, tempfile("pattern"="amapvox_", fileext=".vox"))
}