export: Export data from R

exportR Documentation

Export data from R

Description

Export data from R

Usage

export(object, con, ...)

## S4 method for signature 'SummarizedExperiment,character'
export(
  object,
  con,
  bindRowData = FALSE,
  compress = FALSE,
  overwrite = TRUE,
  quiet = FALSE
)

Arguments

object

Object.

con

character(1) or connection. Data connection. Use character(1) to represent a file path.

bindRowData

logical(1). Whether to column bind row data (e.g. gene annotations), slotted in rowData, to each exported assay matrix, defined in assays.

compress

logical(1). Apply gzip compression to all files.

overwrite

logical(1). Overwrite existing file on disk.

quiet

logical(1). Perform command quietly, suppressing messages.

...

Additional arguments.

Value

Invisible character or list of file paths.

Note

Updated 2023-10-05.

See Also

  • BiocIO::export.

  • rio::export.

  • write.table.

  • writeLines.

Examples

data(RangedSummarizedExperiment, package = "AcidTest")

## SummarizedExperiment ====
object <- RangedSummarizedExperiment
con <- AcidBase::tempdir2()
x <- export(object = object, con = con)
print(x)
AcidBase::unlink2(con)

acidgenomics/r-acidexperiment documentation built on Jan. 17, 2024, 7:56 p.m.