savetofiles {xml2relational} | R Documentation |
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.
savetofiles(ldf, dir, sep = ",", dec = ".")
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. |
No return vaue.
Other xml2relational:
getCreateSQL()
,
getInsertSQL()
,
toRelational()
# Find path to custmers.xml example file in package directory
path <- system.file("", "customers.xml", package = "xml2relational")
db <- toRelational(path)
savetofiles(db, dir = tempdir())