Change all instances of delimiter in cell names from list of data.frames/matrices or single data.frame/matrix

Change_Delim_All(data, current_delim, new_delim)

Arguments

data

Either matrix/data.frame or list of matrices/data.frames with the cell barcodes in the column names.

current_delim

a single value of current delimiter.

new_delim

a single value of new delimiter desired.

Value

matrix or data.frame with new column names.

Examples

if (FALSE) {
dge_matrix <- Change_Delim_All(data = dge_matrix, current_delim = ".", new_delim = "-")
}