mincWriteVolume {RMINC}R Documentation

Write a MINC volume to file.

Description

Writes a MINC volume to file.

Usage

mincWriteVolume(buffer, "filename.mnc", "optionalColumn")

Arguments

buffer

The data to be written to file. Usually the result of mincLm or some such command.

filename

The filename to which to write the data to.

column

Optional name of the column of a multidimensional MINC object to write out. By default the first column is used.

like.filename

An existing MINC filename which has the same dimensions as the data to be written out. Normally this information is stored inside MINC data objects.

Details

This function takes numeric data, usually the results computed from one of the other mincFunctions, and writes it to file so that it can be viewed or manipulated with the standard MINC tools.

See Also

mincLm,mincFDR,mincMean, mincSd

Examples

## Not run: 
# read the text file describing the dataset
gf <- read.csv("control-file.csv")
# run a linear model relating the data in all voxels to Genotype
vs <- mincLm(filenames ~ Genotype, gf)
# see what's in the results
vs
# write the results to file
mincWriteVolume(vs, "output.mnc", "Genotype+")

## End(Not run)

[Package RMINC version 0.5.1 Index]