1/13
Looks like no tags are added yet.
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
What character is used for multiplication in R?
*
Which of the following is used to access a sequence of elements in a vector or data frame?
:
Which of the following classifications describes a categorical variable in R? Choose all that apply.
character
factor
Which of the following is the correct description of a list in R?
1-dimensional object that can contain data of different type
What is meant by the term working directory?
The folder (usually on your computer) where R is looking for files by default.
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.
&
,
Which of these functions is used to add a new column to a tibble/data frame?
mutate()
What is the plot you would create to display one categorical variable on the x axis and frequency on the y axis?
Barplot
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()
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
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()
The code table(titanicDatasurvived,titanicDatasex) will produce a ….
two way contingency table of counts
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.