Getting Help Flashcards
1
Q
help(topic)
A
documentation on topic
2
Q
?topic
A
id.
3
Q
help.search(“topic”)
A
search the help system
4
Q
apropos(“topic”)
A
the names of all objects in the search list matching
the regular expression ”topic”
5
Q
help.start()
A
start the HTML version of help
6
Q
str(a)
A
display the internal structure of an R object
7
Q
summary(a)
A
gives a “summary” of a, usually a statistical summary but it is
generic meaning it has different operations for different classes of a
8
Q
ls()
A
show objects in the search path; specify pat=”pat” to search on a
pattern
9
Q
ls.str()
A
str() for each variable in the search path
10
Q
dir()
A
show files in the current directory
11
Q
methods(a)
A
shows S3 methods of a
12
Q
methods(class=class(a))
A
ists all the methods to handle objects of class a