Nathalie_Escalante_Assignment_1

format: html: embed_resources: true


Answer the following questions in your Quarto file:

#1. What is an IDE?

An IDE is an integrated development process used to simplify the software development process.

#2. What is the R Console and what is it used for?

The R console is the window where R studio shows the results of a command.

#3. What is the Environment and what is it used for?

The emviornment is a window within Rstudio where the objects being used in each session are displayed. ##

#4. In the Files pane, what is a .Rhistory file? What is a .qmd file? What is a .Rproj?

The .Rhistory file automatically saves the commands used in your session, A .qmd is a quarto markdown file and is used for documants including code and text, an .Rproj file is used to organize and seperate each project within Rstudios.

#5. Quarto documents allow what three items?

Quarto documents allow text, code, and output.

#6. Insert a code chunk that creates three variables: x = 10, y = 7, z = 15. Run the code.

x <- 10
y <- 7
z <- 15

x
[1] 10
y
[1] 7
z
[1] 15

#7. Insert a new code chunk that adds x + z. Run the code.

result <- x + z
result
[1] 25

What populates in the Environment pane? What populates in the R Console?(answer as text in the quarto document)

The Enviornment plane is populated by objects currently loaded into the R session such as variables or packages. The R console is populated by commands, message. and print statments.

#8. Insert a new code chunk that creates a new variable: b = x + y. Run the code.

b <- x + y
b
[1] 17

#9. Install the tidyverse package and library by inserting a code chunk in your quarto file.

install.packages("tidyverse")
Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.4'
(as 'lib' is unspecified)
library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.4     ✔ readr     2.1.5
✔ forcats   1.0.0     ✔ stringr   1.5.1
✔ ggplot2   3.5.1     ✔ tibble    3.2.1
✔ lubridate 1.9.4     ✔ tidyr     1.3.1
✔ purrr     1.0.2     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors

Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.

Running Code

When you click the Render button a document will be generated that includes both content and the output of embedded code. You can embed code like this:

1 + 1
[1] 2

You can add options to executable code like this

[1] 4

The echo: false option disables the printing of code (only output is displayed).