editData: A shiny app for editing a 'data.frame'

Description Usage Arguments Value Examples

View source: R/editData.R

Description

A shiny app for editing a 'data.frame'

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
editData(
  data = NULL,
  viewer = "dialog",
  length = 50,
  cols = 1:7,
  status = "default",
  showButtons = TRUE,
  enableSave = TRUE,
  editable = NULL,
  formatList = NULL,
  ...
)

Arguments

data

A tibble or a tbl_df or a data.frame to manipulate

viewer

Specify where the gadget should be displayed. Possible choices are c("dialog","browser","pane")

length

Numeric desired maximum length of string

cols

numeric

status

character. dropdownButton status. One of c("default","info","primary","danger","warning","success")

showButtons

logical

enableSave

logical

editable

logical

formatList

Null or list. Format list to be passed to formatStyle

...

Further arguments to be passed to datatable()

Value

A manipulated 'data.frame' or NULL

Examples

1
2
3
4
5
6
7
library(shiny)
library(editData)
# Only run examples in interactive R sessions
if (interactive()) {
    result<-editData(mtcars)
    result
}

cardiomoon/editData documentation built on July 18, 2021, 2:53 p.m.