View source: R/miscellaneous.R
getOptimalColWidth | R Documentation |
Get optimal column widths, based on the minimum word size and median number of characters in each column.
getOptimalColWidth( data, widthValue = ifelse(formatReport$landscape, 240, 190), labels = NULL, formatReport = subjectProfileReportFormat() )
data |
Data.frame with columns for which optimal width should be extracted. |
widthValue |
max number of characters in the codeparamValueVar parameter. |
labels |
(optional) Character vector with column labels for |
formatReport |
list with parameters used to specify the format of the report,
e.g. output of the |
Numeric vector of length(ncol(data))
with optimal widths.
Laure Cougnaud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.