mergeTrts: A function to regenerate cumulative fractions by merging...

View source: R/basic_functions.R

mergeTrtsR Documentation

A function to regenerate cumulative fractions by merging treatments.

Description

A function to regenerate cumulative fractions by merging treatments.

Usage

mergeTrts(
  data,
  keep.trts,
  trt.id = "TrtID",
  cum.time = "CumTime",
  cum.frac = "CumFraction"
)

Arguments

data

A data frame object with the raw cumulative data that needs to be cleaned.

keep.trts

One or more treatments to keep from the original set of treatments.

trt.id

The column specifying the original set of treatments used to generate the cumulative fractions.

cum.time

Column name for the cumulative time data.

cum.frac

Column name for the cumulative fraction germinated.

Value

A data frame with new cumulative fraction values.

Examples

"foo"

pedrobello/pbtm documentation built on May 17, 2022, 3:37 a.m.