Reputation: 867
Also, would it be illadvised to use RExcel for corporate work? Also, what are some advantages / disadvantages of using it? How small do files need to be for Rexcel?
Upvotes: 8
Views: 6265
Reputation: 121077
There are two big problems with using (naked) Excel.
Firstly, it isn't terribly good at maths. By outsourcing this task to R via RExcel, you sidestep this problem.
Secondly, as with all spreadsheets, you don't get a clear separation of data and analysis-of-data, since cells can contain values or formulae. This makes it difficult to debug problems, and difficult to maintain complex analyses. Using RExcel will not help you with this.
The canonical reference for spreadsheet problems, if you fancy some further reading, is Spreadsheet Addiction.
Upvotes: 10
Reputation: 151
Putting my card on the table: I am the author of RExcel. 5000 calls (say, using RApply) is not really what RExcel is meant for. But if these are all calls to the same function, one could probably vectorize the call and use array formulas in Excel. That would speed up calculation quite a bit.
Upvotes: 15
Reputation: 60746
I have used it in the past, but am not currently using it. Here's my personal list of pros/cons:
pro:
con:
In my opinion RExcel can be a useful hack, but I would not make it a critical path along my workflow. If you really need one or two functions from R then RExcel can be a lifesaver.
I used RExcel to greatly speed up a very slow Excel spreadsheet by replacing a slow VBA function with a very fast one from R. This just bought me time so I could migrate the whole process to R which made it much easier to maintain and track.
I'm not sure what you're asking when you asked "How small do files need to be for Rexcel?" RExcel is an Excel add-on, so if your data fits in Excel you can operate on it. Obviously if you get a huge Excel file in memory and try to send huge amounts of data to R which is also in memory you can run out of memory. But that's a function of accessible memory, not really RExcel.
Upvotes: 16