Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 206904

Add Table Caption to RHandsontable in R

$
0
0

I have the following dataframe in R

  library(rhandsontable)  library(data.table) ###LIBRARIES IMPORTED

We next create the dataset

  DF = data.frame(val = 1:10, big = LETTERS[1:10],                            small = letters[1:10],                         stringsAsFactors = FALSE)

We now render a datatable with a caption

  datatable(DF,caption = htmltools::tags$caption(   style = 'caption-side: top; text-align: center;','Table 1: ', htmltools::em('Trial Data')))

Can a similar table caption be created using RHandsontable

  rhandsontable(DF, colHeaders = c("A", "B", "C")) %>%  hot_cols(colWidths = 75)

I Request someone to take a look.


Viewing all articles
Browse latest Browse all 206904

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>