munlist: munlist

munlistR Documentation

munlist

Description

unlists a list of vectors, matrices, data frames into a n x k matrix whose first column specifies the list item index of the entry and second column specifies the sublist item index of the entry and the remaining columns specifies the value(s) of the vector or matrices.

force.cbind = T will force concatenation via 'cbind' force.rbind = T will force concatenation via 'rbind'

Usage

munlist(x, force.rbind = F, force.cbind = F, force.list = F)

Arguments

x

list of vectors, matrices, or data frames

force.rbind

logical flag to force concatenation via rbind (=FALSE), otherwise will guess

force.cbind

logical flag to force concatenation via cbind (=FALSE), otherwise will guess

force.list

logical flag to force concatenation via unlist (=FALSE), otherwise will guess

Value

data.frame of concatenated input data with additional fields $ix and $iix specifying the list item and within-list index from which the given row originated from

Author(s)

Marcin Imielinski


mskilab/skitools documentation built on Aug. 31, 2023, 1:13 p.m.