Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
xml
xml
help(insert_function_name)
# an example for print()

help(print)
  • an equivalent command is to use the help operator ?:
Code Block
xml
xml
?(print)

Image Added

  • In your script, type and run
Code Block
languagexml
titlePrint()
print("Hello world")
 
#output below
> print("hello world")
[1] "hello world"


Info
titleInformation: Print()

According to the manual, the print command has the usage

Code Block
languagexml
print(x..)

Function_name(arg1)
where x is “Hello world”


Info
titleNext section

Explore data: the basics