f_reactable: Create reactable table in html document

View source: R/f - Reactable.R

f_reactableR Documentation

Create reactable table in html document

Description

Creates reactable table in html document.

Usage

f_reactable(
  df.input,
  c.col.default.align = "center",
  n.col.default.max.width = 500,
  v.col.text = NULL,
  v.col.text.name = NULL,
  v.col.text.align = NULL,
  v.col.text.width = NULL,
  v.col.digit = NULL,
  v.col.digit.name = NULL,
  v.col.digit.number = NULL,
  v.col.digit.align = NULL,
  v.col.digit.width = NULL,
  v.col.euro = NULL,
  v.col.euro.name = NULL,
  v.col.euro.number = NULL,
  v.col.euro.align = NULL,
  v.col.euro.width = NULL,
  v.col.link.label = NULL,
  v.col.link.url = NULL,
  v.col.link.name = NULL,
  v.col.link.align = NULL,
  v.col.link.width = NULL,
  v.row.number.color = NULL,
  c.row.number.color = NULL,
  n.defaultPageSize = 10,
  b.showPageSizeOptions = TRUE,
  v.pageSizeOptions = c(10, 20, 30),
  b.filterable = TRUE,
  b.searchable = TRUE
)

Arguments

df.input

Data frame to print as rectable table in html document.

c.col.default.align

What is default alignment. Options are: "left", "center", and "right" (default: "center").

n.col.default.max.width

What is the max width of a column (default: 500).

v.col.text

Vector with feature names that should be formated as text (default: NULL).

v.col.text.name

Vector with header names that should be used in the table instead (default: NULL).

v.col.text.align

Vector with alignment of the text. Options are: "left", "center", and "right" (default: NULL).

v.col.text.width

Vector with widths of the concerned columns (default: NULL).

v.col.digit

Vector with feature names that should be formated as number (default: NULL).

v.col.digit.name

Vector with header names that should be used in the table instead (default: NULL).

v.col.digit.number

Vector with number of digits to use (default: NULL).

v.col.digit.align

Vector with alignment of the numbers. Options are: "left", "center", and "right" (default: NULL).

v.col.digit.width

Vector with widths of the concerned columns (default: NULL).

v.col.euro

Vector with feature names that should be formated as euro (default: NULL).

v.col.euro.name

Vector with header names that should be used in the table instead (default: NULL).

v.col.euro.number

Vector with number of digits to use (default: NULL).

v.col.euro.align

Vector with alignment of the euro's. Options are: "left", "center", and "right" (default: NULL).

v.col.euro.width

Vector with widths of the concerned columns (default: NULL).

v.col.link.label

Vector with feature names that should be used as link label (default: NULL).

v.col.link.url

Vector with feature names that should be used as link url (default: NULL).

v.col.link.name

Vector with header names that should be used in the table instead (default: NULL).

v.col.link.align

Vector with alignment of the links. Options are: "left", "center", and "right" (default: NULL).

v.col.link.width

Vector with widths of the concerned columns (default: NULL).

v.row.number.color

Row numbers that need to be colored with c.row.number.color (default: NULL).

c.row.number.color

Color to give to the concerned rows (default: NULL).

n.defaultPageSize

What is the default page size? (default: 10).

b.showPageSizeOptions

Should we show page size options? (default: TRUE).

v.pageSizeOptions

What page size options to provide (default: c(10, 20, 30)).

b.filterable

Should table be filterable? (default: TRUE).

b.searchable

Should table be searchable? (default: TRUE).

Details

-

Value

Reactable table.

Author(s)

Pieter Overdevest

Examples

f_reactable(

     df.input                = mtcars,
     c.col.default.align     = "center",
     n.col.default.max.width = 500,
     v.col.text              = NULL,
     v.col.text.name         = NULL,
     v.col.text.align        = NULL,
     v.col.text.width        = NULL,
     v.col.digit             = NULL,
     v.col.digit.name        = NULL,
     v.col.digit.number      = NULL,
     v.col.digit.align       = NULL,
     v.col.digit.width       = NULL,
     v.col.euro              = NULL,
     v.col.euro.name         = NULL,
     v.col.euro.number       = NULL,
     v.col.euro.align        = NULL,
     v.col.euro.width        = NULL,
     v.col.link.label        = NULL,
     v.col.link.url          = NULL,
     v.col.link.name         = NULL,
     v.col.link.align        = NULL,
     v.col.link.width        = NULL,
     v.row.number.color      = NULL,
     c.row.number.color      = NULL,
     n.defaultPageSize       = 10,
     b.showPageSizeOptions   = TRUE,
     v.pageSizeOptions       = c(10, 20, 30),
     b.filterable            = TRUE,
     b.searchable            = TRUE
)

pieterov/generaltoolbox documentation built on Jan. 25, 2025, 10:32 a.m.