fastread homefastrread library fastread menu

R Programming : Print Hello World!

Tutorial by:Maria Ghoste      Date: 2016-06-10 03:19:47

❰ Previous Next ❱

Source Code

> # We can use the print() function
> print("Hello World!")
[1] "Hello World!"

> # Quotes can be suppressed in the output
> print("Hello World!", quote=FALSE)
[1] Hello World!

> # If there are more than 1 item, we can concatenate using paste()
> print(paste("How","are","you?"))
[1] "How are you?"

In this program, we have used the built-in print() function to print the string Hello World! The quotes are printed by default. To avoid this we can pass the argument quote=FALSE.

If there are more than one item, we can use the paste() or cat() function to concatenate the strings together.

❰ Previous Next ❱

R Programming

Submit Your Thought, Tutorial, Articls etc.

Submit Your Information India's Number one online promotion website