Stats Exam #1: R Questions and Correct
Answers/ Latest Update / Already Graded
Console
Ans: Interactive window that consists of the bottom left pane.
This is where you type commands after the > prompt, one at a
time
Editor
Ans: (script window) Window at the top left pane where
collections of commands can be edited and saved
Run button
Ans: Can send code from the editor to console window by
highlighting code and hitting this button.
Workspace/history window
Ans: top right pane that shows all objects you have typed in R.
files/plots/packages/help window
All rights reserved © 2025/ 2026 |
, Page |2
Ans: Bottom right pane where you can open files, view plots
(histograms, pie, graphs), and load packages.
Export
Ans: located at the top of the window, used to save a plot as an
image or PDF.
What is the simplest thing you can use R for?
Ans: Use as a calculator
If R thinks that a command is not complete, what prompt does it give?
Ans: "+" on the next line and subsequent lines until the
command is completed.
Operator for subtraction
Ans: -
Operator for multiplication
Ans: *
All rights reserved © 2025/ 2026 |
, Page |3
Operator for division
Ans: /
Operator for power
Ans: ^
Operator for less than
Ans: <
Operator for less than or equal to
Ans: <=
Operator for greater than
Ans: >
Operator for greater than or equal to
Ans: >=
Operator for equal to
All rights reserved © 2025/ 2026 |
, Page |4
Ans: ==
Operator for or
Ans: |
Operator for not equal to
Ans: !=
The operators <,<=..., != are logical operators and give what type of
answer?
Ans: TRUE or FALSE
Objects
Ans: anything that can be assigned a name, and can take a
variety of forms: scalars, vectors, matrices, arrays, etc.
Variable
Ans: simply a label for an object or piece of information
assignment symbol
All rights reserved © 2025/ 2026 |