pretty_table | R Documentation |
Create a standard frequency table that can be written to excel.
pretty_table(x, x_label, useNA = "ifany")
x |
A vector. |
x_label |
Label for the x variable? |
useNA |
How should missing values be treated in the table? Possible values: |
Standard table
output is very ugly when written to excel. This function creates an easy to write to excel object.
Returns a data.frame with 2 columns, the levels of x and its frequencies.
pretty_table(iris$Species, "Flower Species")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.