Description Usage Arguments Details Value Note Author(s)
gdata
provides the wonderful read.xls
, but
frequently if the last column is
characters, then there is a single extra space in all words in the last
column. This method over-rides gdata
's, and fixes the last columns.
1 |
xls |
path to the Microsoft Excel file. Supports “http://”, “https://”, and “ftp://” URLs. |
sheet |
number of the sheet within the Excel file from which data are to be read |
verbose |
logical flag indicating whether details should be printed as the file is processed. |
... |
additional arguments to read.table. The defaults for |
This function works translating the named Microsoft Excel file
into a temporary .csv or .tab file, using the xls2csv
or xls2tab
Perl script installed as part of the gdata
package.
Caution: In the conversion to csv, strings will be quoted. This
can be problem if you are trying to use the comment.char
option
of read.table
since the first character of all lines (including
comment lines) will be “\"” after conversion.
a data.frame
This extra space is probably due to different line endings.
Mark Cowley, 2009-01-22
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.