| extractFromList(HFWutils) | R Documentation |
extract data from lists of lists ; these are typically the output of a lapply or sapply
extractFromList(mIn, names)
mIn |
~~Describe mIn here~~ |
names |
~~Describe names here~~ |
~~ If necessary, more details than the description above ~~
~Describe the value returned If it is a LIST, use
comp1 |
Description of 'comp1' |
comp2 |
Description of 'comp2' |
...
....
~~further notes~~
~Make other sections like Warning with section{Warning }{....} ~
Felix Wittmann hfwittmann@gmail.com
~put references to the literature/web site here ~
~~objects to See Also as help, ~~~
c1 <- list(a=1,b=2)
c2 <- list(a=3,b=4)
d<- list(c1,c2)
d
# [[1]]
# [[1]]$a
# [1] 1
#
# [[1]]$b
# [1] 2
#
#
# [[2]]
# [[2]]$a
# [1] 3
#
# [[2]]$b
# [1] 4
extractFromList(d,names=c('a','b'))
#$a
# [,1]
#[1,] 1
#[2,] 3
#
#$b
# [,1]
#[1,] 2
#[2,] 4