Guest User

Untitled

a guest
Jul 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. data2<-read.table("RunFinal_Ozone_County_2007_70-9ppb_InverseDist_MSAmerge.txt", header=TRUE)
  2.  
  3. sapply(data2[,-1:-6], sum)
  4.  
  5. summortnonito<-with(data2, tapply(MORTNONITO,MSA,sum))
  6. summortnonsch <- with(data2, tapply(MORTNONSCH, MSA, sum))
  7. summortnonbel <- with(data2, tapply(MORTNONBEL, MSA, sum))
  8. summortallev <- with(data2, tapply(MORTALLLEV, MSA, sum))
  9. summortallbel <- with(data2, tapply(MORTALLBEL, MSA, sum))
  10. summortcardio <- with(data2, tapply(MORTCARDIO, MSA, sum))
  11. sumervisits <- with(data2, tapply(ERVISITS, MSA, sum))
  12. sumharesp <- with(data2, tapply(HARESP, MSA, sum))
  13. sumschoolloss <- with(data2, tapply(SCHOOLLOSS, MSA, sum))
  14. sumacutresp <- with(data2, tapply(ACUTRESP, MSA, sum))
  15.  
  16. results2<- cbind(summortnonito, summortnonsch, summortnonbel, summortallev, summortallbel,
  17. summortcardio)
  18. results2
Add Comment
Please, Sign In to add comment