Skip to content

Re ading multiple Excel 2007 files with a loop

1 message · neuro at ich.ms

#
A small example.
regards Christian
+ print(fname[sp])
+ data <- read.xls(fname[sp], sheet=1, verbose=FALSE,perl="perl")
+ print(data)
+ }
[1] "C:/dm/test/xls1/file1.xls"
Converting xls file to csv file... Done.
Reading csv file... Done.
    A   B
1 100 100
2 200 200
[1] "C:/dm/test/xls1/file2.xls"
Converting xls file to csv file... Done.
Reading csv file... Done.
    A   B
1 100 100
2 200 300
[1] "C:/dm/test/xls2/file5.xls"
Converting xls file to csv file... Done.
Reading csv file... Done.
    A   B
1 100 100
2 200 300
3 200 100

regards Christian