View source: R/WriteVoxelSpace.R
writeVoxelSpace | R Documentation |
write a voxel file out of a VoxelSpace
object.
writeVoxelSpace(vxsp, f)
vxsp |
the object of class VoxelSpace to write |
f |
a character string naming a file. |
readVoxelSpace()
## Not run:
# 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"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.