demographic_tables: Create demographic tables

View source: R/demographic_tables.r

demographic_tablesR Documentation

Create demographic tables

Description

Create CCMH demographic tables.

Usage

demographic_tables(
  data,
  decimal_place = 2,
  text.font = "Avenir",
  print.tables = TRUE,
  save = FALSE,
  path = "demograpics.xlsx"
)

Arguments

data

A data file containing demographic information.

decimal_place

The number of decimal places to round to. Default is 2.

text.font

The font type of the text in the table. Default is Avenir.

print.tables

A logical statement indicates whether the table should be printed in the console. By default, TRUE.

save

A logical statement indicates whether the table should be saved as a file under a local folder. If false, the table will be returned as an object. By default, FALSE.

path

A quoted string to indicate the file's pathway and name if save = TRUE. By default, "table.html". File must be an html file.

Value

Prints demographic tables in concole and/or saves them in under the working directory.


CCMH-PSU/CCMHr documentation built on Jan. 11, 2025, 4:36 p.m.