What are the differences between concatenating strings with cat() and paste()?
问题 What are the differences between concatenating strings with cat and paste ? In particular, I have the following questions. Why does R not use the double quote ( " ) when it prints the results of calling cat (but it uses quotes when using paste )? > cat("test") test > paste("test") [1] "test" Why do the functions length and mode , which are functions available for almost all objects in R, not "work" on cat ? > length(cat("test")) test[1] 0 > mode(cat("test")) test[1] "NULL" Why do C-style