Chapter 1 Flashcards
1
Q
Console Pane
A
- This is the window where you can give Instructions to R.
- Language is in 1s and 0s
- Answer appears back in the console pane
- It is the brain. The mind. The engine.
2
Q
Environment Pane
A
- Shows the things that R has in its head (i. e., datasets, models, etc)
- Contains: Import Dataset
3
Q
History Pane
A
Contains the instructions R has run
4
Q
Bottom right Pane
A
Contains 5 tabs:
- Files
- Plots
- Packages
- Help
- Viewer
5
Q
Symbol > with a cursor flashing after is called
A
The prompt
6
Q
log(x)
A
Gives the natural log of x, and not the log to base 10
7
Q
log10(x)
A
log to base 10
8
Q
sin( )
A
- Works in radians and not in degrees
- For instance, a full circle is 2 x π radians (not 360 degrees)
9
Q
sin(2*pi)
A
- should be zero, but R tells us it is very close to zero, but not zero
10
Q
sinpi( )
A
- Does the ‘multiply by π’ bit for you
- Therefore, sinpi(2) does equal zero
11
Q
R ignores white spaces (T or F)
A
True
12
Q
seq( )
A
function to make a series of numbers
13
Q
rm( )
A
stands for remove
14
Q
ls( )
A
stands for list
15
Q
rm(list = ls( ))
A
- This function is used to clear R’s brain
- Read from inside out
- ls( ) requests all of the objects in R’s brain
- rm( ) asks R to remove all of these objects in the list
- list = is new, and is us telling R exactly what information (i.e., argument) we are giving to the rm( ) function