Lab 0

Author

Margaret Solomon

Question 1

part a

I am from San Bernardino county, California

part b

San Bernardino County (/sæn ˌbɜːrnəˈdiːnoʊ/ ⓘ SAN BUR-nə-DEE-noh), officially the County of San Bernardino, is a county located in the southern portion of the U.S. state of California, and is located within the Inland Empire area. As of the 2020 U.S. Census, the population was 2,181,654,[9] making it the fifth-most populous county in California and the 14th-most populous in the United States. The county seat is San Bernardino.[10]

While included within the Greater Los Angeles area, San Bernardino County is included in the Riverside–San Bernardino–Ontario metropolitan statistical area, as well as the Los Angeles–Long Beach combined statistical area.

With an area of 20,105 square miles (52,070 km2), San Bernardino County is the largest county in the contiguous United States by area, although some of Alaska’s boroughs and census areas are larger. The county is close to the size of West Virginia

these three paragraphs are taken from wikipedia

part c

  1. I Like the diversity.

  2. I like the shopping centers and mall.

  3. I like the people.

Question 2

part a

5+15
[1] 20

part b

#Tables

names <- factor(c("Malarika", "Anjali", "Hannah", "Ashley", "Zoe"))
contact_info <- c(5109545419, 4254441681, 4086404514,6572384480, 7136233893)
Home_town <- factor(c("Houston", "Seattle", "San Jose", "Anaheim", "Houston"))
sibling_pets <- c(3, 1, 2, 2, 1)
semesters_in_college <- c(3, 1, 8, 1, 3)
Farthest_distance <- c("8610mi", "780mi", "50mi", "400mi", "1913mi" )
my_classmates <- data.frame(names, contact_info, Home_town, sibling_pets, semesters_in_college, Farthest_distance)
my_classmates
     names contact_info Home_town sibling_pets semesters_in_college
1 Malarika   5109545419   Houston            3                    3
2   Anjali   4254441681   Seattle            1                    1
3   Hannah   4086404514  San Jose            2                    8
4   Ashley   6572384480   Anaheim            2                    1
5      Zoe   7136233893   Houston            1                    3
  Farthest_distance
1            8610mi
2             780mi
3              50mi
4             400mi
5            1913mi

Question 3

part a

likert_scale <- c( "Strongly disagree","Disagree","Neither agree nor disagree","Agree","Strongly agree")
likert_scale <- factor(likert_scale)
likert_scale
[1] Strongly disagree          Disagree                  
[3] Neither agree nor disagree Agree                     
[5] Strongly agree            
5 Levels: Agree Disagree Neither agree nor disagree ... Strongly disagree

part b

likert_scale <- c( "strongly agree", "Agree", "Neither agree nor disagree", "Disagree", "Strongly disagree")
likert_scale <- factor(likert_scale)
likert_scale
[1] strongly agree             Agree                     
[3] Neither agree nor disagree Disagree                  
[5] Strongly disagree         
5 Levels: Agree Disagree Neither agree nor disagree ... Strongly disagree