write_surf_data | R Documentation |
This function writes surface data from a NeuroSurface or NeuroSurfaceVector object to a .1D.dset file.
write_surf_data(surf, outstem, hemi = "")
surf |
An object of class |
outstem |
A character string specifying the base name for the output file (without extension). |
hemi |
A character string specifying the hemisphere ("lh" for left, "rh" for right). Default is an empty string. |
The function writes the surface data to a .1D.dset file, which is a tabular data format.
The output file contains node indices in the first column, followed by data values in subsequent columns.
The file name is constructed by combining outstem
, hemi
(if provided), and the extension ".1D.dset".
For NeuroSurfaceVector objects, all columns of data are written. For NeuroSurface objects, only the single data vector is written.
The data is written without row names, column names, or quotes.
This function does not return a value. It writes the data to a .1D.dset file as a side effect.
## Not run:
# Assuming 'surf_data' is a NeuroSurface or NeuroSurfaceVector object
write_surf_data(surf_data, "output_data", "lh")
# This will create a file named "output_data_lh.1D.dset"
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.