Learn R Programming

drc (version 0.8-2)

colFct: Collapse of levels

Description

Collapse levels in a vector into fewer levels.

Usage

colFct(assayNo, noVec)

Arguments

assayNo
a vector to be collapsed.
noVec
a vector of indices in assayNo that should be collapsed.

Value

  • A vector of same length as assayNo containing the new levels.

Details

This function is primarily for use in the collapse argument in multdrc.

Examples

Run this code
x <- c("a","a","b","b","b","b","c","c","d","d","d","e")
colFct(x,c(4,5))
rm(x)

Run the code above in your browser using DataLab