read_popstate: Read true population state for each year

View source: R/prepare_data.R

read_popstateR Documentation

Read true population state for each year

Description

Read true population total from file

Usage

read_popstate(
  study,
  repl,
  opmod,
  root_dir = ".",
  filetype = c("feather", "csv", "h5")
)

Arguments

study

Study name, e.g. "qdevscaling"

repl

Replicate number

opmod

Operating model

root_dir

Directory with e.g. repl_01 subdirectory that contains popstate_*.csv

filetype

Which popstate file to read? Can be "feather", "csv", or "h5"

Value

A tibble with population and year, starting from 1

Author(s)

John Best


jkbest2/spatq documentation built on Sept. 22, 2022, 3:22 a.m.