# Basic table from data frame
calcite_table(
data = mtcars[1:5, 1:4],
id = "my_table",
caption = "Motor Trend Car Data",
bordered = TRUE,
striped = TRUE
)
# Table with pagination
calcite_table(
data = iris,
id = "iris_table",
caption = "Iris Dataset",
page_size = 10,
numbered = TRUE
)
# Table with custom headers
calcite_table(
data = mtcars[1:5, 1:3],
caption = "Cars",
header = list(
calcite_table_header(heading = "Miles/Gallon", description = "Fuel efficiency"),
calcite_table_header(heading = "Cylinders", description = "Number of cylinders"),
calcite_table_header(heading = "Displacement", description = "Engine size")
)
)
Run the code above in your browser using DataLab