tabla2 | R Documentation |
Creates two data frames (alocated in a list), one for continuous variables (with columns: variable, mean, sd, median and IQR), and another for categorical variables (with columns: n and percentage).
table2(data, digits = 2)
data |
Data to summarize, pay attention to column types. |
digits |
Number of decimals to round. |
A list with two data frames, first one containing the values for continuous variables and second one for categorical variables.
result <- table2(mtcars)
result
writexl::write_xlsx(result, "exported_table2.xlsx")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.