CTstared: CTstared adds a vector of characters (i.e., stars) to the...

View source: R/CTstared.R

CTstaredR Documentation

CTstared adds a vector of characters (i.e., stars) to the variables names of a contingency table.

Description

CTstared adds a vector of characters (i.e., stars) to the names ot the variables (i.e., the columns) of a contingency table. Used, for example, to make a heat map of contingency table with the names of the variables begin stared if they are siginficant with a Cochran's test.

Usage

CTstared(aCT, vecOfStars, pos = "before")

Arguments

aCT

a Contingency Table

vecOfStars

a vector (same length as the number of columns of aCT) with the stars

pos

position of the stars "before" (default) or "after" the names of the variables. @return CT.withStars aCT with added stars

Author(s)

Herve Abdi

Examples

## Not run: 
 staredCT <- CTstared(aCT,stars4ThisCT)

## End(Not run)


HerveAbdi/PTCA4CATA documentation built on July 17, 2022, 5:41 a.m.