I have a list here.
NewList <- list(a="abc",b="xyz",c="lmn")
If I run Reduce(f = function(x,y){paste0(x,y,sep=";")},x=NewList)
surprisingly, it gives me "abcxyz;lmn;"
If I run Reduce(f = function(x,y){paste(x,y,sep=";")},x=NewList), the answer is as expected "abc;xyz;lmn".
Can anyone help me explain why paste0 gives the results above different from paste?