Isha’s Blog Post

Running Blog Post for Course Homeworks

Isha Akshita Mahajan
08-16-2021

##Introduction

Hello Everybody! My name is Isha and I am starting the DACSS program this summer. I am from India and completed my bachelors in journalism and political science from UMass. I am excited to meet everyone this fall and delve into the world of data and social science.

##Homework 2

marriage_data <- read_csv('../../_data/australian_marriage_tidy.csv')
head(marriage_data)
# A tibble: 6 × 4
  territory       resp    count percent
  <chr>           <chr>   <dbl>   <dbl>
1 New South Wales yes   2374362    57.8
2 New South Wales no    1736838    42.2
3 Victoria        yes   2145629    64.9
4 Victoria        no    1161098    35.1
5 Queensland      yes   1487060    60.7
6 Queensland      no     961015    39.3

#About the Data This data sample is drawn from the Australian Marriage Law Postal Survey in 2017. Eligible participants were those who enrolled in the Commonwealth Electoral Roll by August 24 , 2017 and were 18 years of Age. They had not served prison sentences of three years and longer and participated in the survey voluntarily. The responses were recorded to the question

Should the law be changed to allow same-sex couples to marry?

##Homework 3

How can you arrange your dataset by territory?

data_summary <- marriage_data %>% 
  group_by(territory) %>% 
  summarise(count,resp)

Which Territory had the highest population count who voted yes to the law allowing same-sex couples to marry.

yes_voters <-marriage_data %>% 
  filter(resp=="yes") %>% 
  arrange(-count) 

Rename the resp column to response.

marriage_data <- marriage_data %>% 
  rename(response = resp)

Distill is a publication format for scientific and technical writing, native to the web.

Learn more about using Distill at https://rstudio.github.io/distill.

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY-NC 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Mahajan (2021, Aug. 16). DACSS 601 August 2021: Isha's Blog Post. Retrieved from https://mrolfe.github.io/DACSS601August2021/posts/2021-08-13-ishas-blog-post/

BibTeX citation

@misc{mahajan2021isha's,
  author = {Mahajan, Isha Akshita},
  title = {DACSS 601 August 2021: Isha's Blog Post},
  url = {https://mrolfe.github.io/DACSS601August2021/posts/2021-08-13-ishas-blog-post/},
  year = {2021}
}