Skip to content

Commit

Permalink
fixes issue #47
Browse files Browse the repository at this point in the history
  • Loading branch information
geneorama committed Aug 28, 2017
1 parent 2ef7a0f commit 9fb60f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/21_create_features.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ wnv[species == "CULEX TERRITANS", spec := "territans"]
dcast(wnv[ , .N, list(season_year, wday=wday(date))],
season_year ~ wday, value.var = "N")
setnames(wnv, "date", "date_orig")
wnv[ , date := as.IDate(round(date_orig, "year") + (week / 52) * 365)]
wnv[ , date := as.IDate(round(date_orig, "year") + (week / 52) * 365) - 6]
setcolorder(wnv, c('season_year', 'week', 'test_id', 'block', 'trap', 'trap_type',
'date_orig', 'number_of_mosquitoes', 'result', 'species',
'id', 'date', 'latitude', 'longitude', 'X', 'Y',
Expand Down

0 comments on commit 9fb60f1

Please sign in to comment.