myTable: myTable

Description Usage Arguments

Description

Creates a 1-D table (i.e. from 1 factor) in a nice format. Useful for converting to a printable table or for converting to a figure (using EMIbar).

Usage

1
2
myTable(table, name = "X", sort = T, percent = F, total = percent,
  sum = NULL, remove = c(), bottom = c())

Arguments

table

any 1-D table, or an object that can be converted to a two column data frame

name

string for first column header

sort

sort table from highest to lowest (default is TRUE)

percent

add column indicating percentages (default is FALSE)

total

add row indicating total (default is FALSE)

sum

total number to base percentages (default is the sum of all values)

remove

vector of row names to remove (ex. NA)

bottom

vector of row names to keep at the bottom of the table (ex. Other)


mnblonsky/REMI documentation built on May 23, 2019, 5:06 a.m.