Export data out of R and write to disk.

# S4 method for Tx2Gene
export(object, ...)

Arguments

object

Object.

...

Additional arguments.

Value

Invisible character. File path(s).

Details

The Tx2Gene method automatically disables writing of column names, which is the intended input format for tximport.

Note

Updated 2020-12-10.

Examples

object <- DataFrame( "txId" = c( "tx0001", "tx0002", "tx0003", "tx0004" ), "geneId" = c( "gene0001", "gene0001", "gene0002", "gene0002" ) ) export(object, file = "tx2gene.csv")
#> → Exporting tx2gene.csv at /Users/mike/git/monorepo/r-packages/acidgenomes/docs/reference using data.table::`fwrite()`.
unlink("tx2gene.csv")