Florida Data Set.


DATA DESCRIPTION:

The official certified votes by county from the 2000 Presidential Election in Florida. The data includes the number of votes for each of 6 candidates for each of the 67 Florida counties (plus the absentees votes). There were 12 presidential candidates. But, in the certified results, only 6 candidates appear: Bush, Gore, Browne, Nader, Harris, Hagelin.


SOURCE: The data is taken from The National Opinion Research Center at NORS.


The columns in these data are: "County","Bush","Gore","Browne","Nader","Harris","Hagelin".

To save the data do:

> florida_read.table("/home/arcones/MySwork/florida.txt",header=T,sep=",")
> county_florida[,1]
> bush_ florida[,2]
> gore_florida[,3]
> browne_ florida[,4]
> nader_florida[,5]
> harris_ florida[,6]
> hagelin_ florida[,7]

To get the total for each candidate do:

bush.tot_sum(bush)
gore.tot_sum(gore)
browne.tot_sum(browne)
nader.tot_sum(nader)
harris.tot_sum(harris)
hagelin.tot_sum(hagelin)

To get the county percentage for each candidate do:

flor_c(bush,gore,browne,nader,harris,hagelin)
florida2_matrix(flor,ncol=6,byrow=F)
apply(florida2,2,sum) 
flor.perc_florida2/apply(florida2,1,sum) 
bush.perc_flor.perc[,1]
gore.perc_flor.perc[,2]
browne.perc_flor.perc[,3]
nader.perc_flor.perc[,4]
harris.perc_flor.perc[,5]
hagelin.perc_flor.perc[,6]