Lab 0

Quarto

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

part a

I am from Redondo Bech, California.

part b

Redondo Beach was originally part of the 1785 Rancho San Pedro Spanish land grant that later became the South Redondo area. The primary attractions include Municipal Pier and the sandy beach, popular with tourists and a variety of sports enthusiasts. The western terminus of the Metro Rail C Line (formerly the Green Line) is in North Redondo Beach.

I cited the [Redondo Beach Wikipedia] (https://en.wikipedia.org/wiki/Redondo_Beach,_California)

part c

  1. the sunset view from the coast
  2. the people
  3. the proximity to the city and the nature

Question 2

part a

 5 * 4
[1] 20

part b

classmate_names <- c("Ella", "Kassidy", "Judit", "Lauren")
classmate_hometowns <- c("Redondo Beach", "Oregon", "Barcelona", "Santa Barbara")
classmate_contact <- c("11", "12", "13", "14")
classmate_pets_and_siblings <- c("1", "0", "3", "2")

                       
my_classmates <- data.frame(
  name = classmate_names,
  hometown = classmate_hometowns,
  contact = classmate_contact,
  pets_and_siblings = classmate_pets_and_siblings
)

print(my_classmates)
     name      hometown contact pets_and_siblings
1    Ella Redondo Beach      11                 1
2 Kassidy        Oregon      12                 0
3   Judit     Barcelona      13                 3
4  Lauren Santa Barbara      14                 2

Question 3

part a

Likert_Scale <- c("strongly disagree", "disagree", "neither agree nor disagree", "agree", "strongly agree")
Likert_Scale
[1] "strongly disagree"          "disagree"                  
[3] "neither agree nor disagree" "agree"                     
[5] "strongly agree"            

part b

Likert_Scale <- c("disagree", "neither agree nor disagree", "agree", "strongly agree", "strongly disagree")
ordered_Likert_Scale <- factor(Likert_Scale, levels = c("strongly disagree", "disagree", "neither agree nor disagree", "agree", "strongly agree"))
ordered_Likert_Scale
[1] disagree                   neither agree nor disagree
[3] agree                      strongly agree            
[5] strongly disagree         
5 Levels: strongly disagree disagree neither agree nor disagree ... strongly agree