make_colnames function

Make matrix column names unique.

Make matrix column names unique.

make_colnames(m, prefix = "X")

Arguments

  • prefix: Prefix to add if column names are empty.

Returns

A matrix with updated column names.