eem_name_replace: Replace matched patterns in sample names

eem_name_replaceR Documentation

Replace matched patterns in sample names

Description

Sample names in eemlist can be altered.

Usage

eem_name_replace(eem_list, pattern, replacement)

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.

Value

An eemlist.

See Also

str_replace_all

Examples

eem_names(eem_list)

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

staRdom documentation built on July 9, 2023, 5:57 p.m.