0

I want the column names to show as:

"ID + Age + Name + ..... + Comments"

There are more than 30 columns and I can't seem to find a simple way to output them

ThomasIsCoding
  • 96,636
  • 9
  • 24
  • 81
Eena29
  • 23
  • 2
  • Possible duplicate/Related : [How can two strings be concatenated?](https://stackoverflow.com/questions/7201341/how-can-two-strings-be-concatenated) – Ronak Shah Jun 16 '21 at 03:07

1 Answers1

1

Try names + paste0

paste0(names(df), collapse = " + ")
ThomasIsCoding
  • 96,636
  • 9
  • 24
  • 81