Questions tagged [xlconnect]
XLConnect is a comprehensive and platform-independent R package for manipulating Microsoft Excel files from within R. XLConnect differs from other related R packages in that it is completely cross-platform and as such runs under Windows, Unix/Linux and Mac (32- and 64-bit). Moreover, it does not require any installation of Microsoft Excel or any other special drivers to be able to read & write Excel files.
I understand that XLConnect can be used to read an Excel worksheet into R. For example, this would read the first worksheet in a workbook called test.xls into R.
library(XLConnect)
...
asked Oct 18 '12 at 1:06
Jeromy Anglim
29.5k2424 gold badges105105 silver badges162162 bronze badges
I have loaded a workbook into R and read in the worksheets using xlConnect, but I was wondering if there was a way of extracting the names of the sheets perhaps in a vector?
So far my code is:
...
asked Jul 30 '13 at 10:39
userk
76155 gold badges1010 silver badges1818 bronze badges
I have to read a file in a list of folders and save data in R.
I use following code for my test data and it works. When I use the code for the actual data then
I get this error
Error: ...
asked Nov 26 '14 at 16:16
poshan
2,10144 gold badges1717 silver badges2727 bronze badges
Has anyone tried using the download handler in R Shiny to download a freshly created Excel file with XLConnect?
In the ui.R there is the unremarkable line:
downloadButton('downloadData', 'Download')
...
asked Jan 27 '14 at 14:43
steinbock
66611 gold badge1111 silver badges2424 bronze badges
I am trying to import an excel sheet into r. I used the following code:
x <- loadWorkbook("x.xlsx")
b <- readWorksheet(x, sheet="b")
The first line works fine, however, running the second ...
asked Oct 27 '14 at 12:31
salhin
1,86433 gold badges2323 silver badges4949 bronze badges
I'm relatively new to R (and programming).
I have an Excel workbook with 36 sheets, but suppose that I don't know how many sheets there are and I want my code to find that out for me. I have tried ...
asked Nov 11 '16 at 11:35
I am using the function readWorksheet from the package XLConnect to import Excel sheets in R. These sheets contain special characters (e.g., ø, õ, ú) which R does not handle very well. As far as I ...
I am trying to use XLConnect library in R. If I execute
library(XLConnect)
I get the following error message:
JAVA_HOME cannot be determined from the Registry
To resolve this problem I set first ...
asked Nov 11 '15 at 17:12
Roman
86.7k140140 gold badges312312 silver badges413413 bronze badges
Is there any way to read out the color-index of cells from excel files with R?
While I can set the cell color with packages like XLConnect or XLSX, I have found no way to extract the color-...
asked Mar 23 '17 at 16:54
Bens
8311 silver badge33 bronze badges
XLConnect is, as the manual describes it, "a package that allows for reading, writing and manipulation of Microsoft Excel files from within R".
Installation on Windows and Linux is straightforward. ...
I am trying to write a R data frame to Excel and want to add additional cells/columns that have Excel formulas and/or data validation values (e.g. using the Data/Validation menu in Excel to provide ...
asked Apr 27 '15 at 14:17
Mac471
27333 silver badges1313 bronze badges
A couple of months ago I found on the Internet information about an R package to connect R with Excel and the other way around (doing basically what xlsx and XLConnect do).
However, the main ...
asked Mar 25 '15 at 11:12
I'm trying to download an .xlsx file from the eia and getting the following error.
The error is: "Error: ZipException (Java): invalid entry size (expected 2385 but got 2390 bytes)"
I have tried the ...
asked Mar 4 '15 at 17:14
user2946746
1,28822 gold badges1414 silver badges2727 bronze badges
I have been at this problem for far too long now, any help welcomed. I finally got rJava installed and loaded, and as part of it I installed the 64-bit JRE and JDK. R version 3.2.2, 64-bit, running on ...
asked Nov 5 '15 at 23:16
Watanake
25322 silver badges99 bronze badges
I'd like to read the numbers in an Excel spreadsheet using the XLConnect package. My impression is that it fails to read the numbers which are computed inside Excel using a formula with a dollar sign. ...
asked Jul 11 '13 at 11:18
PAC
4,05066 gold badges2929 silver badges5454 bronze badges