I'm trying to generate 50+ graphs using the UScensus2000tract data. I need to access the data for just about all of the states, so I was hoping to create a simple loop that will take the relevant state from my data and load the associated census data from the UScensus2000tract package. Below is a sample of what I'm trying to do. Any suggestions are much appreciated.
stores=read.table(paste(path,"\\Store List.txt",sep=""),header=TRUE,sep="\t") city=stores$City state=stores$State city.state=data.frame(city,state) state.temp=city.state$state[1] tract <- paste(state.temp,".tract",sep="") data(tract) Warning message: In data(tract) : data set 'tract' not found Ian McCarthy, Ph.D. F T I 214.397.1761 direct 214.663.1683 mobile ian.mccar...@fticonsulting.com <mailto:firstname.lastn...@fticonsulting.com> Confidentiality Notice:\ \ This email and any attachment...{{dropped:16}} ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.