Skip to contents

The Phivecs target is a matsindf data frame that contains a column of phi vectors. But another common data format is a simple data frame. This function converts the Phivecs matsindf data frame to a data table.

Usage

expand_phi_vecs(
  phi_vecs,
  machine = "Machine",
  phi = "phi",
  matnames = "matnames",
  matvals = "matvals",
  rownames = "rownames",
  colnames = "colnames",
  rowtypes = "rowtypes",
  coltypes = "coltypes"
)

Arguments

phi_vecs

The incoming Phivecs target.

machine, phi, matnames, matvals, rownames, colnames, rowtypes, coltypes

Columns names in phi_vecs.

Value

A data frame with columns Country, Year, Machine, and phi.