I'm given the following list of numbers: 42 35 50 43 48 62 31 36 44 39 55 48 and I can't use them in R if there isn't a comma between each one. I don't want to spend ages manually entering commas in between each number (sometimes I'm given hundreds of numbers at a time!) How do I add a comma between each number using R in RStudio?
I googled this question and tried every suggestion but nothing worked. I know nothing about coding and only learnt how to use R the past few weeks.