complete_intake: Complete intake for a survey using intake from the past...

View source: R/incidence_data_loader.R

complete_intakeR Documentation

Complete intake for a survey using intake from the past seasons

Description

Complete intake for a survey using intake from the past seasons

Usage

complete_intake(
  data,
  intake,
  intake.columns,
  geo = NULL,
  max.year = NA,
  fix.timestamp = TRUE
)

Arguments

data

data.frame() survey data with all participants should have at least (timestamp, person_id) columns. For example weekly survey data

intake

data.frame() intake survey data loaded on the same period as data

intake.columns

columns to load with intake

geo

geo levels to load with intake, list of names of levels to load see geo_level

max.year

maximum number of year to get data before the minimal intake date

fix.timestamp

logical. if TRUE, imported intake will have timestamp set to minimal date of intake parameter

Value

intake with extra intake loaded from previous season


cturbelin/ifnBase documentation built on Nov. 5, 2023, 12:54 p.m.