export {svIO} | R Documentation |
export
is a generic function to convert objects into various foreign formats and write it to a file or a connection.
export(x, type = "raw", file, append = FALSE, objname = deparse(substitute(x)), ...)
x |
The object to export |
type |
type gives the format in which the object should be converted. The list of recognized formats for this object is obtained with type = "typelist" |
file |
The path to the file where the converted object should be extracted |
append |
Do we append this object to this file? |
objname |
The name of the object (by default, it is the name of the variable that holds it) |
... |
Further argument passed to specific export methods |
Return the result from specif exportation methods (invisibly if the file is written)
Philippe Grosjean & Eric Lecoutre
## Not run: data(iris) export(iris, type = "ascii", file = "iris.txt") # Inspect the file 'iris.txt', and then... unlink("iris.txt") ## End(Not run)