Write vertex-wise brain surface data to a file in FreeSurfer ascii 'curv' format.

write.fs.morph.asc(filepath, data, coords = NULL)



string. Full path to the output curv file. If it ends with ".gz", the file is written in gzipped format. Note that this is not common, and that other software may not handle this transparently.


vector of doubles. The brain morphometry data to write, one value per vertex.


optional, nx3 matrix of x,y,z coordinates, one row per vertex in 'data'. If `NULL`, all zeroes will be written instead.

See also