array_to_df: Long format from Array

View source: R/array_to_dataframe.R

array_to_dfR Documentation

Long format from Array

Description

Long format from Array

Usage

array_to_df(a, r)

Arguments

a

Array of the form p x p x m

r

optional scale vector used in computation

Details

The functions in this package return arrays of dimensions p x p x m, where p = number of types, m = number of scales. This function turns this such arrays into data frames with columns (i, j, r, v). If 'r' is provided, the 'r' in the output should match. Otherwise, output 'r' is the index.

Value

data.frame


antiphon/Kcross documentation built on Oct. 21, 2024, 5:45 p.m.