Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This Week's Questions involve the dataset school. data, which is already loaded in the script on your right. This dataset contains some information about every

image text in transcribedimage text in transcribed

image text in transcribedimage text in transcribedimage text in transcribed
This Week's Questions involve the dataset school. data, which is already loaded in the script on your right. This dataset contains some information about every school in Australia (primary and secondary). Your tasks are: 1. Display the first 10 rows of the dataset school. data, and have a look at the variables names. 2. Use the variable Total. Enrolments to find the total number of students in Australia, and place the result in a variable named n. Hint: you may need to use argument na. rm in function sum () . 3. Create a two-dimensional frequency table called geo. table where rows represent Geolocation and columns represent State . Each cell of the table should give the number of schools within a given combination of Geolocation and State. 4. Use the package dplyr to create a new dataset called NSW. no. boys . This dataset is a subset of school. data where: . You keep only schools of School. Type "Secondary" from State "NSW" which have 0 Boys . Enrolments . . You keep only two columns: the first is School. Name and the second is Total. Enrolments. . The dataset is sorted by descending order of Total. Enrolments, meaning that the top row is the school with the largest Total. Enrolments.5. Create a box plot which displays variable ICSEA (which represents a "Index of Community Socio- Educational Advantage") as function of variable State . Change the color of the boxplot to "lightgreen' . The plot should have as main title ICSEA by State, x axis labeled as State and y axis labeled as ICSEA . Place your plot in a R object called ICSEA. boxplot (you can do this with the usual assignment symbol

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Physics For Scientists And Engineers With Modern Physics

Authors: Raymond A Serway, John W Jewett

10th Edition

133767172X, 9781337671729

More Books

Students also viewed these Mathematics questions

Question

Total variation = 13.459; SSE = 2.806; b1 = 2.6652

Answered: 1 week ago

Question

2. Ask questions, listen rather than attempt to persuade.

Answered: 1 week ago