ST 308 Final Exam Multiple Choice Practice

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

14 Terms

1
New cards

Which pane of R Studio can you run quick calculations and see output, and is considered temporary because the code will not be saved?

Console

2
New cards

What character is used for multiplication in R?

*

3
New cards

Which of the following is used to access a sequence of elements in a vector or data frame?

:

4
New cards

Which of the following classifications describes a categorical variable in R? Choose all that apply.

character

factor

5
New cards

Which of the following is the correct description of a list in R?

1-dimensional object that can contain data of different type

6
New cards

What is meant by the term working directory?

The folder (usually on your computer) where R is looking for files by default.

7
New cards

What is the logical operator used inside the filter statement when BOTH conditions have to be met for a row to be kept? Choose all of the following options that does this.

&

,

8
New cards

Which of these functions is used to add a new column to a tibble/data frame?

mutate()

9
New cards

What is the plot you would create to display one categorical variable on the x axis and frequency on the y axis?

Barplot

10
New cards

Which of the following arguments/functions is used to make the entire bars of a histogram or bar plot different colors for each category of a categorical variable?

fill()

11
New cards

What is the argument (and its value) that you can pass to the mean(), median(), or sd() functions to ignore missing values when performing calculations?

na.rm = TRUE

12
New cards

What function groups a dataset by one or more categorical (or other) variables, so that sub sequent operations are performed separately within each group?

group_by()

13
New cards

The code table(titanicDatasurvived,titanicDatasurvived, titanicDatasex) will produce a ….

two way contingency table of counts

14
New cards

Explain the steps needed to open a package into R Studio. What are the code functions? What step only needs to be done once per computer? What step needs to be done every time you open up R?

Type install.packages into the console and hit enter. This only has to be done one time on every computer. Then, in a code chunk or in a script, type library to open the package and load it into R. This has to be done every time you open up R.