How to Apply the print() & cat() Functions in R (Example Code)
This tutorial shows how to use the print and cat functions in the R programming language.
Example: Comparison of print() & cat() Output
example_string <- "dhjfushdnsfjhnnlksdhfknaaaa" # Example string |
example_string <- "dhjfushdnsfjhnnlksdhfknaaaa" # Example string
print(example_string) # print() function # [1] "dhjfushdnsfjhnnlksdhfknaaaa" |
print(example_string) # print() function # [1] "dhjfushdnsfjhnnlksdhfknaaaa"
cat(example_string) # cat() function # dhjfushd # sfjh # # lksdhfk # aaaa |
cat(example_string) # cat() function # dhjfushd # sfjh # # lksdhfk # aaaa