Browse Source

running by code number, the system makes assumptions

Petra Lamborn 3 years ago
parent
commit
dc3398fe98
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      scratch.R

+ 3
- 3
scratch.R View File

@@ -19,11 +19,11 @@ plot(g2)
19 19
 
20 20
 tg <- make_empty_graph()
21 21
 
22
-work_travel %>% select(SA2_code_usual_residence_address, SA2_code_workplace_address) %>% 
22
+work_travel %>% filter(Total > 100) %>% select(SA2_name_usual_residence_address, SA2_name_workplace_address) %>% 
23 23
   as.matrix %>% t %>% as.vector -> elist
24 24
 
25 25
 locgraph <- graph(edges = elist)
26 26
 
27
-plot(locgraph, label = NA)
27
+# plot(locgraph, label = NA)
28 28
 
29
-sg <- decompose(locgraph, mode="weak")
29
+sg <- decompose(locgraph, mode="weak")