Learn R Programming

excelR

An R interface to jExcel library to create web-based interactive tables and spreadsheets compatible with 'Excel' or any other spreadsheet software.

Installation

To install the stable CRAN version:

install.packages('excelR')

To install the latest development version from GitHub:

library(devtools)
install_github('Swechhya/excelR')

Simple example

library(excelR)

 data = data.frame(Model = c('Mazda', 'Pegeout', 'Honda Fit', 'Honda CRV'),
                   Date=c('2006-01-01', '2005-01-01','2004-01-01', '2003-01-01' ),
                   Availability = c(TRUE, FALSE, TRUE, TRUE))

 columns = data.frame(title=c('Model', 'Date', 'Availability'),
                      width= c(300, 300, 300),
                      type=c('text', 'calendar', 'checkbox')) 

 excelTable(data=data, columns = columns)

This package can be used in shiny

  library(shiny)
  library(excelR)

   shinyApp(
     ui = fluidPage(excelOutput("table")),
     server = function(input, output, session) {
       output$table <-
      renderExcel(excelTable(data = head(iris)))
      }
    )

Features:

  • Insert and delete rows and columns.
  • Excel formulas integration
  • Drag and drop columns
  • Resizable rows and columns
  • Merge rows and columns
  • Search
  • Pagination
  • Lazy loading
  • Native color picker
  • Data picker dropdown with autocomplete, multiple, and icons feature
  • Date picker

Copy Link

Version

Install

install.packages('excelR')

Monthly Downloads

819

Version

0.4.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Swechhya Bista

Last Published

March 9th, 2020

Functions in excelR (0.4.0)

excelOutput

Helper function for using jexcel table in Shiny
excelTable

Create excel table using jexcel library
get_selected_data_boundary

Get selected cells boundary from excel table
get_selected_data

Get selected cells from excel table
renderExcel

Helper function for using jexcel table in Shiny
setComments

Add comment to a specified cell
getComments

This function is used to get comment from specified cell
excel_to_R

Convert excel object to data.frame