parse_vec: Aggregation of Vectors in Nested Lists

Description Usage Arguments Author(s) See Also Examples

View source: R/FIEmspro_accest.r

Description

Parser to illustrate a possible output of accest. The function loop other lists of list and aggregate vectors (single values) contained in component labelled nam.

Usage

1
parse_vec(mlist,nam)

Arguments

mlist

List of list

nam

Name of the component of interest

Author(s)

David Enot [email protected].

See Also

accest, parse_freq

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
l1=list(list(v=1),list(v=2),list(v=3))
l2=list(list(v=4),list(v=5),list(v=6))
res=list(l1,l2)

## show list of list
print(res)

## tidy up
parse_vec(res,nam="v")

######## Second example
## Real world problem described in accest

wilsontom/FIEmspro documentation built on Feb. 19, 2018, 9:03 a.m.