parse_freq: Output Variable Frequencies 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 retrieve the frequency of the variable names contained in the component labelled nam.

Usage

1
parse_freq(mlist,nam,sorting=TRUE)

Arguments

mlist

List of list

nam

Name of the component of interest

sorting

Should the variable name be sorted by frequency?

Author(s)

David Enot [email protected]

See Also

accest, parse_vec

Examples

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

## show list of list
print(res)

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

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

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