write a voxel file out of a VoxelSpace object.

writeVoxelSpace(vxsp, f)

Arguments

vxsp

the object of class VoxelSpace to write

f

a character string naming a file.

See also

Examples

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"))
}