Learn R Programming

cg (version 1.0-3)

print.cgPairedDifferenceCorrelationTable: Print a Paired Difference Correlation Table object with some format options

Description

Print a cgPairedDifferenceCorrelationTable object, which contains a table of correlations of the data from a cgPairedDifferenceData object.

Usage

"print"(x, title = NULL, endptname = NULL, ...)

Arguments

x
A cgPairedDifferenceCorrelationTable object, typically created by correlationTable.cgPairedDifferenceData.
title
The title printed out with the table. If NULL, it is set to be "Correlation Table of" the analysisname value taken from the settings slot of the cgPairedDifferenceCorrelationTable object.
endptname
The endpoint name of the data summarized in the table. If NULL, it is set to the endptname value taken from the settings slot of the cgPairedDifferenceCorrelationTable object.
...
Additional arguments. None are currently defined for this method.

Value

print.cgPairedDifferenceCorrelationTable returns invisible. The main purpose is the side effect of printing to the current output connection, which is typically the console.

Details

The object is printed using a mix of cat and print calls. See cgPairedDifferenceCorrelationTable for details of the contents and other object slots.

Two decimal places are used in the display of the correlations.

See Also

cgPairedDifferenceCorrelationTable

Examples

Run this code
data(anorexiaFT)
anorexiaFT.data <- prepareCGPairedDifferenceData(anorexiaFT, format="groupcolumns",
                                                 analysisname="Anorexia FT",
                                                 endptname="Weight",
                                                 endptunits="lbs",
                                                 expunitname="Patient",
                                                 digits=1,
                                                 logscale=TRUE)
## Next two calls are equivalent
correlationTable(anorexiaFT.data)

print(correlationTable(anorexiaFT.data, display="none"))

## A change in title
print(correlationTable(anorexiaFT.data, display="none"),
      title="Correlations")

Run the code above in your browser using DataLab