Learn R Programming

mixAR (version 0.22.8)

ragged2char: Convert a ragged list into a matrix of characters

Description

The function transforms a ragged list into a matrix of characters. It is used in mixAR for output visualisation purposes.

Usage

ragged2char(raglist, filler = NA_character_)

Value

a character matrix

Arguments

raglist

A ragged list (from raggedCoef).

filler

The character filling order mismatches.

Author

Georgi N. Boshnakov

Details

ragged2char converts a ragged list into a character matrix with as many columns as the longest component of the list, filling the missing entries with the values of argument filler. The latter defaults to NA.

In MixAR context the i-th row represents the AR coefficients for the i-th component.

See Also

raggedCoef

Examples

Run this code
li1 <- list(1.5, c(1.51, 1.522), c(10.311, 1.31, 1.313))
ragged2char(li1)
ragged2char(li1, "")

Run the code above in your browser using DataLab