...
You can access the help page of a function in a number of ways
- To open up the help page within R/RStudio using the help command :
Code Block |
---|
|
help(insert_function_name)
# an example for print()
help(print)
|
- an equivalent command is to use the help operator
?
:
- both commands will open up the print function in a web page in windows (or the manual page inside the terminal in Linux)
Image Added
- In your script, type and run
Code Block |
---|
|
print("Hello world")
#output below
> print("hello world")
[1] "hello world" |
Info |
---|
title | Information: Print() |
---|
|
According to the manual, the print command has the usage Function_name(arg1) where x is “Hello world” |