ST 308 QUIZ 2 QUESTIONS & VERIFIED ANSWERS
Which symbol(s) can be used as a bullet in an unordered list in R Markdown? - Answers
-*+-
What is the YAML header for? - Answers - .
To define meta-data about your document
What are the three main elements of an R Markdown document? - Answers - YAML
header, Plain text with simple text formatting, code chunks
Which code chunk option controls whether a particular chunk is actually run or if it is
ignored? - Answers - eval
TRUE/FALSE - read_excel() from the readxl package can read in both .xls and .xlsx
files. - Answers - True
What is the name of the code chunk option that tells Markdown whether or not to
evaluate the code in the chunk when knitting the document? - Answers - eval
You can create sub-sub lists (3-level lists) in R markdown. - Answers - True
What package has functions that can read in SAS data sets (.sas7bdat files)? - Answers
- haven
What is the purpose of using the as_tibble() function from the dplyr package? - Answers
- To convert an existing data frame into a tibblecheck
What is the standard "equal to" comparison operator in R? - Answers - ==
What is the standard "not equal to" comparison operator in R? - Answers - !=
What "family" of functions can be used to check the type of R object you have? -
Answers - is.
dplyr function to subset rows - Answers - filter()
What are the two most common 'row manipulations' we do to a data set? - Answers -
subset and reorder
You can reorder a data set by more than variable using the arrange() function from
dplyr. - Answers - True
Which symbol(s) can be used as a bullet in an unordered list in R Markdown? - Answers
-*+-
What is the YAML header for? - Answers - .
To define meta-data about your document
What are the three main elements of an R Markdown document? - Answers - YAML
header, Plain text with simple text formatting, code chunks
Which code chunk option controls whether a particular chunk is actually run or if it is
ignored? - Answers - eval
TRUE/FALSE - read_excel() from the readxl package can read in both .xls and .xlsx
files. - Answers - True
What is the name of the code chunk option that tells Markdown whether or not to
evaluate the code in the chunk when knitting the document? - Answers - eval
You can create sub-sub lists (3-level lists) in R markdown. - Answers - True
What package has functions that can read in SAS data sets (.sas7bdat files)? - Answers
- haven
What is the purpose of using the as_tibble() function from the dplyr package? - Answers
- To convert an existing data frame into a tibblecheck
What is the standard "equal to" comparison operator in R? - Answers - ==
What is the standard "not equal to" comparison operator in R? - Answers - !=
What "family" of functions can be used to check the type of R object you have? -
Answers - is.
dplyr function to subset rows - Answers - filter()
What are the two most common 'row manipulations' we do to a data set? - Answers -
subset and reorder
You can reorder a data set by more than variable using the arrange() function from
dplyr. - Answers - True