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_tibble(structure(list(3, 4, 5), class = "data.frame"), validate = FALSE) repair_names(tbl)
Run the code above in your browser using DataLab