You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
. We can save only the calculated incidence, not the cumulative values (as they can be reconstructed from the incidence). So the new function should return a tibble or data frame with columns location, date, inc.
, call the new function to process those inputs. After this point, the jhu_deaths_data and jhu_cases_data structures should be tibbles with columns issue_date and data, where in a given row, data is the tibble or data frame created above with columns location, date, and inc corresponding to the data for that issue date.
The text was updated successfully, but these errors were encountered:
elray1
changed the title
consider refactoring data processing to calculate inc signal
refactor jhu data processing to calculate inc signal
Jan 11, 2021
move processing from load_jhu_data function to the assemble-historical-jhu.R script
Create a new R function called
calc_jhu_inc
that has the code in these lines:covidData/R/jhu_data.R
Lines 97 to 172 in feb5648
location
,date
,inc
.In assemble-historical-jhu.R, at
covidData/code/data-processing/assemble-historical-jhu.R
Line 18 in feb5648
covidData/code/data-processing/assemble-historical-jhu.R
Line 32 in feb5648
jhu_deaths_data
andjhu_cases_data
structures should be tibbles with columnsissue_date
anddata
, where in a given row,data
is the tibble or data frame created above with columnslocation
,date
, andinc
corresponding to the data for that issue date.The text was updated successfully, but these errors were encountered: