savetofiles {xml2relational} | R Documentation |
Saving the relational data
Description
Saves a list of dataframes created from an XML source with
toRelational()
to CSV files, one file per dataframe (i.e.
table in the relational data model). File names are identical to the
dataframe/table names.
Usage
savetofiles(ldf, dir, sep = ",", dec = ".")
Arguments
ldf |
A list of dataframes created by
|
dir |
The directory to save the CSV files in. Per default the working directory. |
sep |
Character symbol to separate fields in the CSV fil, comma by default. |
dec |
Decimal separator used for numeric fields in the CSV file, point by default. |
Value
No return vaue.
See Also
Other xml2relational:
getCreateSQL()
,
getInsertSQL()
,
toRelational()
Examples
# Find path to custmers.xml example file in package directory
path <- system.file("", "customers.xml", package = "xml2relational")
db <- toRelational(path)
savetofiles(db, dir = tempdir())
[Package xml2relational version 0.1.1 Index]