Problem 1: Adding regular text to a markdown file part 1

In the space below please add few sentences of regular text that includes your name, major, career goals, and one thing you enjoy doing outside of work and school

hello, My name is Jocelyn Bautista and my major is (STS)science technology and society. My career goal is to change major, go into health care and become a nurse. ___

Problem 2: Adding regular text to a markdown file part 2

In the space below please add few sentences of regular text describe what you think this class will be about and what you hope to learn in it.

I think this class sounds very interesting and I believe were going to learn a lot about location, data and how social media, technology and internet can help help navigate globally.


Problem 3: Formatting text in a markdown file part 1

In the space below please create a level 2 header (that’s ##) that says My Favorite Foods. Then create an ordered list of your 5 favorite foods in order with 1 being your favorite ## My Favorite foods 1) Sushi 2) Tacos 3) chicken wraps 4) cheeseburgers 5) Pizza ___

Problem 4: Formatting text in a markdown file part 2

In the space below please create a level 3 header (that’s ###) that says My Classes This Semester. Then create an un-ordered list of your classes with your most favorite class in bold ### My Classes This Semester Industrial organizational Psychology GIS for Ecology Psychology for women Sociology of work and occupation


Problem 5: Working with numbers in R part 1

In the codeblock below please type the number 12, then on a new line type the number 15, then on a new line type 12 + 15.

#adding numberic values
12
## [1] 12
15
## [1] 15
12+15
## [1] 27

Run the codeblock. Then, in the space below, describe what happened when you ran it. It kept 12 and 15 but when I added 12 and 15 together it gave me the sum of both numbers. ___

Problem 6: Working with numbers in R part 2

In the codeblock below please type the number 300, then on a new line type the number 7, then on a new line type 300/7.

#division
300
## [1] 300
7 
## [1] 7
300/7
## [1] 42.85714

Run the codeblock. Then, in the space below, describe what happened when you ran it. For the first two lines the numbers stayed the same but when I divide 300/7 it gave me the sum of 42,85714. ___

Problem 7: Working with strings in R

In the codeblock below please create a string that says “hello world” (remember strings are in quotation marks), then on a new line create a string that says “a second string on a new line”.

#introduction
"hello world"
## [1] "hello world"
"a second string on a new line"
## [1] "a second string on a new line"

Run the codeblock. Then, in the space below, describe what happened when you ran it.

After running the codeblock, it repeated the two strings in a prompt under the codeblock. ___

Problem 8: Working with variables in R part 1

In the codeblock below please create a variable called twelve and set it equal to the number 12, then on a new line create a variable called fifteen and set it equal to the number 15, then on a new line create a variable called added and set it equal to twelve + fifteen.

twelve <- 12
fifteen <- 15
added <- twelve + fifteen
#the sum of ages

Run the codeblock. Then, in the space below, describe what happened when you ran it. How is this different from what happened in problem 5?

it addeds the two variables which come out to 27 because of the assigned values.


Problem 9: Working with variables in R part 2

Copy the code your created in problem 8 into the codeblock below, then on a new line use the print function to print added

#the ages of neighbor's children
twelve <- 12
fifteen <- 15
added <- twelve + fifteen
print(added)
## [1] 27

Run the codeblock then, in the space below, describe what the print function does (HINT: compare problems 5, 8, and 9)

after running the codeblock again, the Print function displays the results of the variable ‘added’ ___

Problem 10: Comment time

Go back to your previous problems that had codeblocks and add at least one comment to each codeblock

Problem 10: Wrap-up and reflection

In the space below answer the following questions. 1) What is the purpose of a codeblock in R markdown 2) How do we include numbers in a codeblock (please do not overthink this) 3) What does a variable allow you to do in R? 4) How do you differentiate/identify a string compared to a variable when looking at R code 5) What do comments do in R and how can you differentiate/identify them compared to strings or variables

  1. The purpose of a codeblock is write instructions to execute functions
  2. by typing the number in the codeblock
  3. A variable acts as a placeholder for storing data values
  4. a string is identified by quotation marks.
  5. Comments are a lighter green and are started off with a hashtag instead of quotation marks. They are not part of the the coding itself.