Learn R Programming

cg (version 0.9.0)

prepare: Prepare a cg data object from a data frame

Description

Reads in a data frame and settings in order to create a cg Data object.

Usage

prepare(type, ...)

Arguments

type
Currently only accepts the value of "onefactor" or its synonym "unpairedgroups" to create a cgOneFactorData object.
...
Depends on the specific function that is called according to the type argument. Currently the prepareCGOneFactorData is the sole valid call, and no ...arguments ar

Value

  • See cgOneFactorData for the only possible valid object currently returned, assuming that the type and ... arguments are correctly specified.

See Also

prepareCGOneFactorData

Examples

Run this code
data(canine)
canine.data <- prepare(type="unpairedgroups", dfr=canine,
                       format="groupcolumns",
                       analysisname="Canine",
                       endptname="Prostate Volume",
                       endptunits=expression(plain(cm)^3),
                       digits=1, logscale=TRUE, refgrp="CC")

## Censored Data
data(gmcsfcens)
gmcsfcens.data <- prepare(type="onefactor",
                          dfr=gmcsfcens, format="groupcolumns",
                          analysisname="cytokine",
                          endptname="GM-CSF (pg/ml)",
                          logscale=TRUE)

Run the code above in your browser using DataLab