extract_matrix_values: Convert list of eigenvalues into long-form data.frame

Description Usage Arguments Value

View source: R/plotting_helpers.R

Description

The output of compute_eigen_decomp puts the eigenvalues into a list structure, where each element is a vector that corresponds to the eigenvalues for a given time point. This function does the work of converting the values into a data.frame for more easy analysis.

Usage

1
extract_matrix_values(values_list, id_var = "censusdate")

Arguments

values_list

a list of vectors for the eigenvalues: the number of elements in the list corresponds to the time points of the s-map model, and each element is a vector of the eigenvalues, computed from the matrix of the s-map coefficients at that time step

id_var

when constructing the long-format tibble, what should be the variable name containing the time index

Value

A data.frame with columns for the index variable, the eigenvalue, and the rank


ha0ye/portalDS documentation built on March 28, 2020, 1:21 p.m.