Chapter 1 (1.1-1.6) Flashcards
What are the three fundamental goals of quantitative social science research?
- measure
- predict
- explain
True or false: “successfully executed code” and “output” are different things.
False
How does R store information?
In the form of objects.
True or false: “replace” and “overwrite” is the same thing.
True
To create an object called “seven” containing the number 7, you run:
A. “seven” <- 7
B. seven <- “7”
C. seven <- 7
D. 7 <- seven
C. (“seven <- 7”)
What does “##” indicate?
The beginning of an output.
What are the three steps to create an object?
- give the object a name
- specify its contents
- use the assignment operator “<-“
Is R case sensitive?
Yes (for example, “student” and “Student” are different things).
What’s the definition of a function?
An action that you request R to perform on an object or dataset.
Explain the process of an object.
- take an input (or multiple inputs)
- perform an action with the input
- produce an output
Explain the following sentence: “code is sequential”.
Code must be run in order.
Account for the four parts of R.
Upper left window: RScript (where you write and run code)
Lower left window: RConsole (where R provides the executed code and its outputs and errors)
Upper right window: Environment (storage room of the current R session; lists the objects that have been created)
Lower right window: Help and plots tables