Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
General question: is there an R package out there that creates an Excel file? Or saves data frames as excel files? Or is it only possible to write files that already exist in a specific directory? If it is possible to create new Excel files, is there also a possibility to create multiple Excel sheets in that file?
Thank you for answering!
I believe the package openxlsx is the most popular package to do this.
Example:
library(openxlsx)
write.xlsx(iris, file = "writeXLSX1.xlsx")
And yes, you can also add multiple sheets. See a nice introduction here.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Is there a R package for this? I´m looking for something similar to qrencoder but in 1D
For now, my walkaround solution is to use python-barcode through reticulate but I would like to use a R library.
library(reticulate)
barcode <- import("barcode")
name <- barcode$generate('EAN13', '7750243002455', output='barcode_svg')
My ultimate goal is to show barcodes of my products on a Shiny app
Have a look at the zintr package, which uses zint.
barcode_print(8675309, "barcode1.png")
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am trying to extract the data in the tables that start on p.52 of this document (a report from FAA).
The problem is that the tables are included as pictures. Any chance I can get some pointers on how to do that without doing it manually?
I have tried converting it to text using Adobe's OCR function, and I have also tried using the extract_tables function in R's tabulized package.
I could of course do this manually, but it would be good to know if there is a more efficient way of doing it.
It's possible, however its accuracy depends on the image. I always use grayscale images. Here an example of available tools. In your case, I'd suggest you take some screenshots of the tables and use the OCRFeeder to compare the results from GOCR and Tesseract.
sudo apt-get install gocr tesseract-ocr ocrfeeder
ocrfeeder -i image.jpg
After some manual checks, you can import this file in LibreOffice Calc, save it as 'csv', and import in R.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I know with using pack 'real', we can use embedded R in Prolog. But I met problems to use this pack. And I didn't find simple examples of using this pack.
Can somebody give a simple example of this pack?
e.g. Loading Prolog values on to R variables and then call R functions on these values (generate a plot by R function or whatever).
The syntax is the same as the SWISH version I think so just look here:
http://swish.swi-prolog.org/example/Rserve.swinb
and
http://swish.swi-prolog.org/example/Rdataframe.swinb
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm looking for a way to save a R dataframe in msgpack format.
With pandas we do that with df.to_msgpack, I've found this https://gist.github.com/abicky/4433343 to read msgpack[1] file in R.
So how to write a R dataframe in msgpack ?
[1] http://msgpack.org/
There is an older R-based version for the pre-MsgPack 1.0 format on CRAN: msgpackR
I am using newer (post 1.4.0) MsgPack via headers and C++ bindings, but that packages is so far only in my GitHub repo: RcppMsgPack
The package is used as an optional compile-time choice for RcppRedis.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm studying about sparkR, and I know there are so many useful R package in CRAN. But it seems like R package can't be used in sparkR. I'm not sure about that.
Is it true??? If it's not, could you explain how import R package into sparkR?
I'm guessing that you may be referring to the includePackage command:
SparkR also allows easy use of existing R packages inside closures.
The includePackage command can be used to indicate packages that
should be loaded before every closure is executed on the cluster.
Source: R frontend for Spark