| mtcars_xtab | R Documentation | 
This is a table of selected observations and variables from the data frame 
mtcars from package datasets.  
mtcars_xtabAn xtableList object as produced by version 1.8-4 of the xtable 
package (https://CRAN.R-project.org/package=xtable). The table was 
produced with the following code:
data("mtcars", package="datasets")
mtcars <- mtcars[, 1:6]
mtcarsList <- split(mtcars, f = mtcars$cyl)
### Reduce the size of the list elements
mtcarsList[[1]] <- mtcarsList[[1]][1,]
mtcarsList[[2]] <- mtcarsList[[2]][1:2,]
mtcarsList[[3]] <- mtcarsList[[3]][1:3,]
attr(mtcarsList, "subheadings") <- paste0("Number of cylinders = ",
                                          names(mtcarsList))
attr(mtcarsList, "message") <- c("Line 1 of Message", "Line 2 of Message")
mtcars_xtab <- xtable::xtableList(mtcarsList, digits = c(0,2,0,0,0,1,2),
                                caption = "Caption to List")
  
Henderson and Velleman (1981), Building multiple regression models interactively. Biometrics, 37, 391-411.
mtcars
  ttbl <- textTable(mtcars_xtab)
  plot(ttbl, rowheadInside=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.