powered by
repair_names
repair_names(x, prefix = "V", sep = "")
x
repair_names(list(3, 4, 5)) # works for lists, too repair_names(mtcars) # a no-op tbl <- as_data_frame(structure(list(3, 4, 5), class = "data.frame")) repair_names(tbl)
Run the code above in your browser using DataLab