Re-read
?"["
(always better to read the docs before archives...)
and note in particular:
"[[ can be applied recursively to lists, so that if the single index i
is a vector of length p, alist[[i]] is equivalent to
alist[[i1]]...[[ip]] providing all but the final indexing results in a
list."
I agr
Thursday, March 7, 2013 3:14 PM
Subject: [R] iterative extracting data from a list without keys
Dear R Users.
This seems like a simple task, but I'm stuck.
I have a list with 3 elements: (2 vectors and 1 matrix). I wish to extract
each of these data elements using index subscripts and mult
Dear R Users.
This seems like a simple task, but I'm stuck.
I have a list with 3 elements: (2 vectors and 1 matrix). I wish to extract
each of these data elements using index subscripts and multiply them with a
vector multiplier.
What I have:
> betas
[1] 0.01 0.01 0.01
> LData[1]
$int
[1]
3 matches
Mail list logo