I have a text file with 100 names that I am trying to concatenate to create a large single string using the following code. However, my output is showing me a number for each name instead of the actual names itself.
It seems that when these names are being converted into character using the paste function, they are being converted into numbers. Any help will be greatly appreciated.
input=(read.csv("names.txt"))
final_output1 = paste(input, collapse = '')
names.txtplease?stringsAsFactors = FALSEinread.csv.paste(input[,1], collapse='')You can check the differencepaste(data.frame(factor(letters)),collapse='')andpaste(factor(letters),collapse='')