Deduplication of columns (Tidyverse). Anyway to retrieve columns effected?

When columns have the same name, read_delim (part of the tidyverse) will re-name columns. These columns (and what they were renamed to) are display in the console. But, if the number of columns are numerous, the message is truncated.

Is there anyway to retrieve/store the entire message?

I know problems() exist to highlight parsing errors, but this isn't a parsing error and that function doesn't seem to give me any output.

Thank you

Hi CantExitVIM

Do you just want a list of the column names? What about...


names(dataset) # print out column names

my_colnames <- as_tibble(names(dataset)) # or this one, store column names in a separate data set

1 Like

You can also get this with the column specifications using spec():

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.