Renames columns

rename_if_needed(data, x)

Arguments

data

data object

x

a character vector. If named, columns will be renamed