staRdom (version 1.1.28)

eem_name_replace: Replace matched patterns in sample names

Description

Sample names in eemlist can be altered.

Usage

eem_name_replace(eem_list, pattern, replacement)

Value

An eemlist.

Arguments

eem_list

data of class eemlist

pattern

character vector containing pattern to look for.

replacement

character vector of replacements. Has to have the same length as pattern

Details

str_replace_all from package stringr is used for the replacement. Please read the corresponding help for further options.

See Also

Examples

Run this code
eem_names(eem_list)

eem_list <- eem_name_replace(eem_list,"sample","Sample")
eem_names(eem_list)

Run the code above in your browser using DataLab