demog_table | R Documentation |
demog_table
makes a table of the demographics of a set of simulations
and, if appliable, observed data. UNDER CONSTRUCTION.
demog_table(
demog_dataframe,
demog_parameters = NA,
mean_type = "geometric",
variability_type = "90% CI",
variability_format = "to",
break_down_by_sex = TRUE,
rounding = NA,
save_table = NA,
sort_column,
page_orientation = "landscape",
fontsize = 11
)
demog_dataframe |
the output from running |
demog_parameters |
Which demographic parameters do you want to include? Options are NA to include all of the parameters in demog_dataframe or a chraacter vector of the columns in demog_dataframe that you want to include. No need to include any columns that are not a demographic parameter because we'll ignore them, e.g., you don't need to tell us to include the columns "File" or "Individual", etc.) |
mean_type |
What kind of means and CVs or confidence intervals do you want listed in the output table? Options are "arithmetic" or "geometric" (default). |
variability_type |
What statistic would you like to use for reporting the variability? Options are:
|
variability_format |
formatting used to indicate the variability When the variability is concatenated. Options are "to" (default) to get output like "X to Y", "hyphen" to get output like "X - Y", "brackets" to get output like "[X, Y]", or "parentheses" for the eponymous symbol if you're an American and a bracket if you're British, e.g., "(X, Y)". (Sorry for the ambiguity; this was written by an American who didn't originally realize that there was another name for parentheses.) |
break_down_by_sex |
TRUE (default) or FALSE for whether to break down the data by sex. |
rounding |
option for what rounding to perform, if any. Options are:
|
save_table |
optionally save the output table and, if requested, the QC
info, by supplying a file name in quotes here, e.g., "My nicely formatted
table.docx" or "My table.csv", depending on whether you'd prefer to have
the table saved as a Word or csv file. Do not include any slashes, dollar
signs, or periods in the file name. (You can also save the table to a Word
file later with the function |
sort_column |
optionally specify a column to sort by. If none are
supplied, the table will not be sorted. If you would like to sort by more
than one column, we recommend sorting before using this function,
e.g., |
page_orientation |
set the page orientation for the Word file output to "portrait" (default) or "landscape" |
fontsize |
the numeric font size for Word output. Default is 11 point. This only applies when you save the table as a Word file. |
shading_column |
If you would like to alternate the shading of the rows
in the output table, supply here the unquoted name of the column to check
for when to change the shading; every time that column's value changes, the
shading will alternate between white and light gray. For example, if you
have a table with PK values for multiple files and you have more than one
row per file (an example of this would be the output from the function
|
merge_shaded_cells |
TRUE (default) or FALSE for whether to merge the
cells that have the same shade. This only applies when one of the columns
in the input data.frame is used for deciding when to alternate shading,
that is, |
merge_columns |
a vector of quoted column names or of numeric column
positions that should be merged vertically whenever the values are the
same. For example, |
a formatted table
# none yet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.