How would I create a function that returns 4 columns from from two separate files.
The files are: Incident: ID, Incident.Number, Date.Time, Street.Name, City, State, Station.Responding, Zip.
SalaryData: CalendarYear, EmployeeName, Department, JobTitle, AnnualRate, Regularrate, OvertimeRate, IncentiveAllowance, Other, YeartoDate.
I want to create a function that returns a dataframe with 4 columns:
1) Year type character
2) #ofIncidents
3) TotalWages
4) CostperIncident
I am not worried about how to calculate the columns, just how to write a function that reads two files and creates a data frame with the 4 columns. Just the basic order or syntax that would get me started.
If more information is needed I will gladly provide it.
I sincerely appreciate any help to get me started.
Thank you.