week 5 R

¡Supera tus tareas y exámenes ahora con Quizwiz!

Delimiter

A character that indicates the beginning or end of a data item

Question 1 Fill in the blank: A delimiter is a character that marks the beginning and end of _____.

A delimiter is a character that marks the beginning and end of a data item. It can mark a single line of code, or a whole section of code in an .rmd file.

A data analyst wants to mark the beginning of their code chunk. What delimiter should they type in their .rmd file?

Three backticks followed by the letter r in braces (```{r }) indicates the beginning of a code chunk in an .rmd file.

Code chunk delimiters

```{r}and```

R Markdown

A file format for making dynamic documents with R

YAML

A language for data that translates it so it's readable

Code chunk

Code added in an .Rmd file

Fill in the blank: Code added to a(n) _____ file is usually called a code chunk.

Code added to a .rmd file is usually called a code chunk.

A data analyst has to create a monthly report for their stakeholders. What can they create to help them save time generating these reports? 1 / 1 point

Creating a template for your reports allows you to run one line of code to update your data without having to recreate the report from scratch. Templates can also help you customize the appearance of your final report.

A data analyst wants to find headers in their R Markdown document. What should they look for?

Hashtags are used for headers; for example, ### Results indicates that Results is a Header 3 style heading because there three hashtags.

A data analyst wants to make one of the headers in their R Markdown document smaller. What should they include in the markdown text to do this?

Hashtags are used for headers; the more hashtags, the smaller the header.

While formatting their R Markdown document, a data analyst decides to make one of the headers smaller. What do they type into the document to do this?

Hashtags can be used to make headers smaller. The more hashtags, the smaller the text.

HTML

Hypertext Markup Language The set of markup symbols or codes used to create a webpage

A data analyst inserts some code directly into their R Markdown file so that they can refer to it directly in their write-up. What is this called?

Inline code can be inserted directly into the text of an .rmd file.

R Notebook

Lets users run your code and show the graphs and charts that visualize the code

Fill in the blank: Markdown is a _____ for formatting plain text files

Markdown is a syntax for formatting plain text files.

A data analyst wants to convert their R Markdown file into another format. What are their options? Select all that apply

R Markdown files can be converted into HTML, PDF and Word, slideshow presentations, or dashboards.

Fill in the blank: R Markdown is a _____ for making dynamic documents with R.

R Markdown is a file format for making dynamic documents with R.

R notebooks allow other users to run your code and display graphs and charts that visualize that code.

R notebooks are an interactive R Markdown option that allows other users to run your code and display graphs and charts that visualize that code.

A data analyst wants to embed a link in their RMarkdown document. They write (click here!)(www.rstudio.com) but it doesn't work. What should they write instead? 1 / 1 point

The analyst should write [click here!](www.rstudio.com). The text to be linked should be bracketed. The parentheses around the URL itself are correct.

A data analyst has code chunks in their R Markdown file. How do they appear in an HTML report?

The code chunks are run and the output appears in the HTML report.

A data analyst wants to include the caption example 1 below an image (image URL: r-project.org/logo/Rlogo.png). What is the correct syntax for adding an image with this caption in an RMarkdown document?

The correct syntax for adding an image with the caption example 1 to an RMarkdown file is ![example 1](r-project.org/logo/Rlogo.png). The syntax is an exclamation mark followed by the caption in brackets and the image URL or pathway in parentheses

A data analyst writes in a code chunk and puts three backticks at the end of their code to mark the end of the data item. What are these backticks?

The delimiter is a character that indicates the beginning or end of a data item. In RMarkdown, ```{r } and ``` can be used as delimiters for code chunks.

What information does a data analyst usually find in the header section of an RMarkdown document? Select all that apply.

The header section of an RMarkdown document contains the title, author, date, and file type.

The knit button can be used to save an R Markdown document as a shareable HTML report.

The knit button creates a shareable HTML report of the R Markdown file.

A data analyst has finished editing their R Markdown file and wants to save it as an HTML report. What tool will they use?

The knit button will produce a report containing all text, code, and results from the R Markdown file.

Which of the following kinds of information can you include in this CV template? Select all that apply.

The template you used in this activity allows you to input an email address, profile picture, and Twitter username. You can replace the information in the template with your own to create a CV. Going forward, you can use R Markdown templates to start your documents with a pre-existing structure--leaving you with more time to focus on your content and analysis.

A data analyst creates an interactive version of their R Markdown document to share with other users that allows them to execute code the analyst wrote. What did they create?

They created an R notebook, which is an interactive R Markdown option. It lets users run code from the R Markdown document and displays charts and graphs to visualize that code.

A data analyst wants to include a link in their RMarkdown document. They should use the syntax (click here)[rstudio.com].

This syntax is incorrect. The analyst should enclose the text that they want to appear in the document in brackets. The URL should be in parenthesis after that. This data analyst has switched the formatting. It should be [click here](rstudio.com).

To create bullet points in their output document, a data analyst adds _____ to their RMarkdown document.

To create bullet points in their output document, a data analyst adds asterisks to their RMarkdown document.


Conjuntos de estudio relacionados

LA - Chapter 6 Part 1: The Development of Syntax and Morphology

View Set

Holes Anatomy CH 8 muscle Assessment

View Set