View source: R/read_functions.R
export_xvg | R Documentation |
write the data component of an xvg_data
object (or multiple objects) to a delimited text file,
controlled via the sep
parameter rather than file extension detection.
export_xvg(xvg_data, file, sep = "\t", row.names = FALSE, merge = FALSE, ...)
xvg_data |
An object of class |
file |
Path to the output file (any extension is acceptable). |
sep |
Field separator (e.g., "\t" for TSV, "," for CSV). Default is "\t". |
row.names |
Logical, whether to write row names. Default is FALSE. |
merge |
Logical, whether to merge multiple xvg_data objects before exporting. Default is FALSE. |
... |
Additional arguments passed to |
Invisibly returns the path to the written file.
## Not run:
xvg <- read_xvg(system.file("extdata/rmsd.xvg", package = "xvm"))
# Export as TSV
export_xvg(xvg, "rmsd.tsv", sep = "\t")
# Export as CSV
export_xvg(xvg, "rmsd.csv", sep = ",")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.