Get Help in R Environment

Q

How to get help in R environment?

✍: FYIcenter.com

A

You can use the help() function to get help in R environment.

1. Get help on the help() function:

> help(help)

help is the primary interface to the help systems.

Usage

help(topic, package = NULL, lib.loc = NULL,
     verbose = getOption("verbose"),
     try.all.packages = getOption("help.try.all.packages"),
     help_type = getOption("help_type"))
...

2. Get help on print() function:

> help(print)

print prints its argument and returns it invisibly (via invisible(x)).

Usage

print(x, ...)
...

3. Get help on "cars" data frame:

> help(cars)

The data give the speed of cars and the distances taken to stop. Note that
the data were recorded in the 1920s.

Usage

cars
...

 

Built-in Graphics Package in R Environment

Data Frame Example - "cars"

R Language Basics

⇑⇑ R Software Environment - Frequently Asked Questions

2023-05-31, 281🔥, 0💬