Problem Set 1
Hello & Welcome to R
Before attempting this assignment, be sure to follow the insturctiosn noted in the Preliminaries page under โCourse Contentโ.
Submit: .R File (Optional)
In an .R file, write code to answer the following questions. Make sure your file is appropriately titled and headered.
Note: You can submit this R file in Week 2, if you prefer.
- Create an object named
aardvark
that stores a 3 as a single number - Create a second object named
boomba
that stores a 6 as a single number - Create a third object named
centauri
that is the addition ofaardvark
andboomba
- Create a fourth object named
diabolical
that is the multiplicationaardvark
andboomba
- Create an object named
ebullient
that stores three numbers as a vector: 4,5,and 6 - Create an object named
fastidious
that stores three numbers as a vector: 8,9, and 11 - Add
ebullient
andfastidious
together, and store it in an object namedgeorge
- Find the mean (average) of
fastidious
, and store it in an object namedzoinks
Submit: PDF file (Due Week 1)
Answer the following questions and upload as a PDF to Blackboard.
What is your name and program of study at Syracuse?
(Optional: provide your pronouns, if you wish.)What is your prior experience with statistics, data analysis, R, and computer programming generally?
What are you hoping to get out of this class?
Please include a picture of yourself!
- It can be anything โ just make sure that you are the only person in the picture so I can clearly identify you.
What is the mean of the
fastidious
object from your .R assignment above?