gifti_writer: Write data to a gifti file.

Description Usage Arguments References Examples

View source: R/gifti_writer.R

Description

Write data to a gifti file.

Usage

1
gifti_writer(filepath, ...)

Arguments

filepath

path to the output gifti file

...

parameters passed to gifti_xml.

References

https://www.nitrc.org/frs/download.php/2871/GIFTI_Surface_Format.pdf

Examples

1
2
3
4
5
6
## Not run: 
  outfile = tempfile(fileext = '.gii');
  dataarrays = list(rep(3.1, 3L), matrix(seq(6), nrow=2L));
  gifti_writer(outfile, dataarrays, datatype=c('NIFTI_TYPE_FLOAT32', 'NIFTI_TYPE_INT32'));

## End(Not run)

freesurferformats documentation built on Feb. 11, 2022, 5:06 p.m.