diff options
| author | Ben Green <bgreen@g.harvard.edu> | 2015-09-13 23:52:40 -0400 |
|---|---|---|
| committer | Ben Green <bgreen@g.harvard.edu> | 2015-09-13 23:52:42 -0400 |
| commit | f23e9e5da58d1d19913703e11f7ff96a7adff96b (patch) | |
| tree | b9459b3670cdf125f8bdf0888288be3a0a1357a8 /R Scripts/duplicate-shotings.R | |
| parent | fffb68b515a5cae198d8b756b562ddea6f2c814c (diff) | |
| download | criminal_cascades-f23e9e5da58d1d19913703e11f7ff96a7adff96b.tar.gz | |
updated prediction code for new model and data format
Diffstat (limited to 'R Scripts/duplicate-shotings.R')
| -rw-r--r-- | R Scripts/duplicate-shotings.R | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/R Scripts/duplicate-shotings.R b/R Scripts/duplicate-shotings.R new file mode 100644 index 0000000..0d17a4e --- /dev/null +++ b/R Scripts/duplicate-shotings.R @@ -0,0 +1,9 @@ +vic_times = vic_times_lcc[vic_ids,] +rows=c() +for(i in 1:dim(vic_times[1])){ + row = as.numeric(vic_times[i,2:7]) + if(max(table(row))>1){ + rows = c(rows,i) + } +} + |
