VOOZH about

URL: https://www.geeksforgeeks.org/r-language/print-the-argument-to-the-screen-in-r-programming-print-function/

⇱ Print the Argument to the Screen in R Programming - print() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Print the Argument to the Screen in R Programming - print() Function

Last Updated : 15 Jul, 2025
print() function in R Language is used to print out the argument to the screen.
Syntax: print(x, digits, na.print) Parameters: x: specified argument to be displayed digits: defines minimal number of significant digits na.print: indicates NA values output format
Example 1: Output:
 speed dist
1 4 2
2 4 10
3 7 4
4 7 22
5 8 16
Example 2: Output:
[1] 2.1
[1] 2.14
[1] 2.143 
Example 3: Output:
 [, 1] [, 2] [, 3]
[1, ] 2 5
[2, ] 8 
[3, ] 22 67 43
Comment
Article Tags:

Explore