
writeVector(x, fileName, format, dataType)
"writeVector"(x, fileName)
"writeVector"(x, fileName, format)
"writeVector"(x, fileName, dataType)
BrainVector
instance.character
vector of: "BINARY", "UBYTE", "SHORT", "INT", "FLOAT", "DOUBLE".
Otherwise output format will be inferred from R the datatype of the image.
bvec <- BrainVector(array(0, c(10,10,10,10)), BrainSpace(c(10,10,10,10), c(1,1,1)))
## Not run:
# writeVector(bvol, "out.nii")
# writeVector(bvol, "out.nii.gz")
# writeVector(bvec, "out.nii")
# writeVector(bvec, "out.nii.gz")
# ## End(Not run)
Run the code above in your browser using DataLab