This function calculates the daily uptake based on weekly uptake data.

get_daily_uptake(up_week_raw, start_time)

Arguments

up_week_raw

A numeric vector containing the weekly uptake data.

start_time

An integer representing the start time in days.

Value

A numeric vector of length 365 representing the daily uptake.

Details

The function first processes the weekly data to fill a weekly uptake vector, then calculates the daily uptake by interpolating the weekly data.

Examples

if (FALSE) { # \dontrun{
up_week_raw <- c(0.1, 0.2, 0.3, 0.4, 0.5)
start_time <- 1
daily_uptake <- get_daily_uptake(up_week_raw, start_time)
} # }