stats coding midterm Flashcards

1
Q

Obtain documentation for a given
R command

A

help()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

View some examples on the use of a command

A

example()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Enter data manually to a vector in
R

A

c(), scan()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Make arithmetic progression vector

A

seq()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Make vector of repeated values

A

rep()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Load (often into a data.frame) built-in dataset

A

data()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

View dataset in a spreadsheet-type format

A

View()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Display internal structure of an R object

A

str()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Load into a data.frame an existing data file

A

read.csv(), read.table()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Make available an R add-on package

A

library(), require()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

See dimensions (# of rows/cols) of data.frame

A

dim()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Give length of a vector

A

length()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Lists memory contents

A

ls()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Removes an item from memory

A

rm()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Lists names of variables in a data.frame

A

names()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Command for producing a histogram

17
Q

Lattice command for producing a histogram

A

histogram()

18
Q

List all values of a variable with frequencies

19
Q

Make a stem plot

20
Q

Cross-tabulation tables using formulas

21
Q

Make a mosaic plot

A

mosaicplot()

22
Q

Groups values of a variable into larger bins

23
Q

Identify “center” of distribution

A

mean(), median()