Open hadley opened 9 years ago
Adopting a consistent code style makes it much easier to scan the doc. This block jumped out at me because of the indented pieces, but I don't think the indentation actually means anything.
aux <- read.csv("incomePC.csv", header=T)
aux <- subset(aux, X=='Estimate')
aux[,4] <- as.numeric(as.character(aux[,4]))
aux1 <- subset(aux,select=-c(1,3),subset=!community%in%c('Gary','Philadelphia'))
aux2 <- apply(subset(aux,community=='Gary',select=-c(1,2,3)),2,mean)
aux2 <- data.frame(community='Gary',t(aux2))
A bit of whitespace and indenting makes code like this easier to read: