Skip to contents

Add replicate id for a dataset with severall treatments

Usage

add_replicate_id(data, treatment = "treatment")

Arguments

data

a data frame

treatment

the name of the column containing the treatment identifiers

Value

a data frame with treatment_id column

Examples

add_replicate_id(my_dataset, treatment = 'zone')
#> Error: object 'my_dataset' not found