![]() |
VOOZH | about |
Hello, Geeks is the first basic program in any programming language. Let’s write the program in R programming language. All one needs to do is display the message “Hello World” on the screen. Let’s look at the program:
The following R program displays “Hello Geeks” in the output.
This code declares a variable containing a message and then prints that message using the "print()" function in R.
[1] "Hello Geeks"
The following R program displays “Hello Geeks” in the output.
Output:
[1] "Hello Geeks"
message() function:Output:
Hello Geeks
sprintf() function:Output:
[1] "Hello Geeks"