Skip to content

Commit

Permalink
Update rnets code
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Mar 18, 2019
1 parent 9ab0d0d commit aeb7240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 07b.3-regional-rnets.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ hist(rnet_new1$dutch_slc)
purpose = "school"
geography = "lsoa"

k = which(r$region_name == "avon")
k = which(r$region_name == "london")
for(k in 1:nrow(r)) {
rmini = rnet[r[k,], ]
r_spatial = as(rmini, "Spatial")
Expand All @@ -56,7 +56,7 @@ for(k in 1:nrow(r)) {
s_new / 1e6
if(s_new > 50000000) {
print("reducing rnet size")
rmini_spatial = rmini_spatial[rmini_spatial$dutch_slc >= 50, ]
rmini_spatial = rmini_spatial[rmini_spatial$dutch_slc >= 100, ]
}
# else if(s_new > 70000000) {
# print("reducing rnet size")
Expand Down

0 comments on commit aeb7240

Please sign in to comment.