I'm trying to declare the following variable as a list of patient ID's to use for further analysis:
id = c("patientID1", "patientID2", ...)
I have a list of about 5000 patient ID's I need to do this for, so I used a comma separated list generator. The minimal working example given in this Stack post works, but when I try it for all of my patient ID's it doesn't seem to work. Importantly, when I tried the minimal working example in the Stack post (it worked), I did type it out manually rather than using the column to list converter.
Any ideas here? Is there another way that I should be making the comma separated list in R from an excel column to make sure that it works? Why is
R giving me the
+ sign anyways? The brackets are closed.