Learn R Programming

dpcR (version 0.5)

rename_dpcr: Rename object

Description

Renames objects of class '>adpcr or '>dpcr.

Usage

rename_dpcr(x, exper = NULL, replicate = NULL, assay = NULL)

Arguments

x

an '>adpcr or '>dpcr object.

exper

a vector of new experiments' names. If NULL, experiments' names are not changed.

replicate

a vector of new replicates' ids. If NULL, replicates' names are not changed.

assay

a vector of new assays' names. If NULL, assays' names are not changed.

Details

The valid exper, replicate and assay names are factors. For the sake of convenience, this function converts other types to factors if it is possible.