staRdom (version 1.0.3)

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)

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

Value

An eemlist.

Details

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

See Also

str_replace_all

Examples

Run this code
# NOT RUN {
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 DataCamp Workspace