0
我有幾百個XML文件。它們可能是從Excel生成的。我想將它讀入R或轉換爲CSV。所有文件的標題看起來像這樣:如何將Excel XML文件讀取/轉換爲R/CSV?
<?xml version="1.0" encoding="UTF-8"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
我總是可以編寫解析器,但想避免這樣做。我沒有Excel
'gnumeric' [package](http://cran.r-project.org/web/packages/gnumeric/index.html)可能會幫助你。 – vaettchen