Learn R Programming

CNVRG (version 1.0.0)

indexer: Determine indices for treatment groups

Description

This function determines the indices for the first and last replicates within a vector describing treatment group.

Usage

indexer(x)

Arguments

x

Vector input.

Value

A list with two named elements that contain start and end indices.

Examples

Run this code
# NOT RUN {
indexer(c(rep("treatment1",5), rep("treatment2",5)))
# }

Run the code above in your browser using DataLab