Answered step by step
Verified Expert Solution
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 Adjust the file andor file path to read in your firefighter and police data file as you did in Milestone Two.
Step Adjust the data set name for each file to the same name you assigned in Milestone Two.
Step 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 variables, which are fields from each of the data files and then the minmaxmean for each of these, so there are a total of variables generated. #Read in Files
libraryreadr
#Adjust the file name and file path below for each of the files. Use the same file read code from Milestone Two
firefighter readcsv~SNHUDATMilestonesdatmilestonetwodatafirefighter.csv
Viewfirefighter
police readcsv~SNHUDATMilestonesdatmilestonetwodatapolice.csv
Viewpolice
#Adjust the sample field names and variable names below to be the same fields used in Milestone Two
polTotSalMinminpolice$Total Salary
polTotSalMaxmaxpolice$Total Salary
polTotSalAvgmeanpolice$Total Salary
ffTotSalMinminfirefighter$Total Salary
ffTotSalMaxmaxfirefighter$Total Salary
ffTotSalAvgmeanfirefighter$Total Salary
polRetMinminpolice$Retirement
polRetlMaxmaxpolice$Retirement
polRetAvgmeanpolice$Retirement
ffRetMinminfirefighter$Retirement
ffRetMaxmaxfirefighter$Retirement
ffRetAvgmeanfirefighter$Retirement
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started