
Export expression data
exportData.RdExports the expression data contained in a SpatialMap object to a CSV file.
Usage
exportData(
object,
data_layer = "Data",
features = NULL,
analyze = NULL,
base_dir = NULL,
file_names = NULL,
...
)Arguments
- object
A SpatialMap object
- data_layer
The name of the data slot to export
- features
Specific features to export. Defaults to exporting all features.
- analyze
What to analyze (and how). The options are "regions", NULL (activeAnalysis), the name of a currently existing formal analysis, or the name of a column in
object'sprojectMetadata(an "informal" analysis).- base_dir
The name of the base directory in which to place the exported data. Defaults to
@projectName- file_names
The name(s) of the exported file(s), without .csv extension. The number of names expected is based on the
analyzeparameter (i.e. for a "combined" analysis, only one name is expected). Defaults to Region IDs whenanalyze = NULLandactiveAnalysis = "regions", but a named character vector can be used to define custom file names (names correspond to region IDs, values to file names).- ...
Arguments passed to
write.csv
Details
Further details and examples are available at
vignette("Tutorial_Exporting_Data").
See also
Other exporting functions:
exportAnnotations(),
exportCellData(),
exportCoords(),
exportMetadata(),
exportPathDefault()