% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/from_files.R
\name{align_disagg_inputs}
\alias{align_disagg_inputs}
\title{Align CPI and VAB weights on their common years}
\usage{
align_disagg_inputs(path_cpi, path_weights)
}
\arguments{
\item{path_cpi}{Path to the CPI Excel file (see \code{\link{read_cpi}}).}

\item{path_weights}{Path to the VAB-weights Excel file
(see \code{\link{read_weights_matrix}}).}
}
\value{
A list with \code{cpi} (numeric, length \eqn{T}), \code{W}
  (\eqn{T \times K}, rows sum to 1), \code{years}, \code{industries}.
}
\description{
Reads the CPI and the weights matrix, intersects their years, and returns the
aligned aggregate vector and weight matrix ready for the disaggregation
engines. Both engines (state-space and conjugate) consume this output.
}
\seealso{
\code{\link{disaggregate_from_files}}
}
