Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Step 1 . Adjust the file and / or file path to read in your firefighter and police data file as you did in Milestone

Step 1. Adjust the file and/or file path to read in your firefighter and police data file as you did in Milestone Two.
Step 2. Adjust the data set name for each file to the same name you assigned in Milestone Two.
Step 3. Adjust the variable names in the script provided to be the same variable names you defined in Milestone Two. Make sure to adjust both the name of the data set and the variable name. Note that you will have a total of 12 variables, which are 2 fields from each of the 2 data files and then the min/max/mean for each of these, so there are a total of 12 variables generated. #Read in Files
library(readr)
#Adjust the file name and file path below for each of the 2 files. Use the same file read code from Milestone Two
firefighter <- read_csv("~/SNHU/DAT-500/Milestones/dat500_milestone_two_data_firefighter.csv")
View(firefighter)
police <- read_csv("~/SNHU/DAT-500/Milestones/dat500_milestone_two_data_police.csv")
View(police)
#Adjust the sample field names and variable names below to be the same fields used in Milestone Two
polTotSalMin<-min(police$`Total Salary`)
polTotSalMax<-max(police$`Total Salary`)
polTotSalAvg<-mean(police$`Total Salary`)
ffTotSalMin<-min(firefighter$`Total Salary`)
ffTotSalMax<-max(firefighter$`Total Salary`)
ffTotSalAvg<-mean(firefighter$`Total Salary`)
polRetMin<-min(police$Retirement)
polRetlMax<-max(police$Retirement)
polRetAvg<-mean(police$Retirement)
ffRetMin<-min(firefighter$Retirement)
ffRetMax<-max(firefighter$Retirement)
ffRetAvg<-mean(firefighter$Retirement)

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

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

What are the purposes of promotion ?

Answered: 1 week ago