unemp <- read_excel("/Users/wathiq/Downloads/laucntycur14.xlsx")
sub.unemp <- subset(unemp,select = c(State,countyState,Unemployment))
fl.unemp = sub.unemp[sub.unemp[,1]=="12",]
unique(fl.unemp$countyState)
fl.unemp2 <- subset(fl.unemp, select = c(countyState,Unemployment))
attach(fl.unemp)
fl.sort2 <- fl.unemp2[order(countyState), ]
So, I have a dataframe that has the unemployment rate for each county in Florida and I want to find the average unemployment rate per county. How do I go about that?
Just to give you an idea, fl.sort2 is a dataframe with 2 columns, the name of the county and the unemployment rate. I sorted them alphabetically
County ..................Unemployment
Alachua County, FL 4.3
Alachua County, FL 3.0
Alachua County, FL 2.3
Baker County, FL 4.5
Baker County, FL 4.1
How would I find the mean unemployment for each county?