s-news
[Top] [All Lists]

merging lists?

To: "s-news" <s-news@lists.biostat.wustl.edu>
Subject: merging lists?
From: "Heymans, MW" <mw.heymans@vumc.nl>
Date: Thu, 21 Sep 2006 00:24:15 +0200
Thread-index: AcbdAsDj3wZbqmqrSwyk7aA4RK3wlQ==
Thread-topic: merging lists?
Dear list,
 
Help is appreciated.
 
I have this list existing of different column numbers:

[[1]]:

[[1]][[1]]:

[1] 1 2 3 4 7 8

[[1]][[2]]:

[1] 1 2 3 6 7 8

[[2]]:

[[2]][[1]]:

[1] 1 2 3 4 6

[[2]][[2]]:

[1] 1 2 3

 

and I have this list of different values:

[[1]]:
[[1]][[1]]:
[1] 0.008452287 0.021192002 0.021649091 0.021271986 0.018899095 0.018636425

[[1]][[2]]:
[1] 0.008443075 0.019499494 0.019310736 0.022038186 0.017810169 0.019808354

[[2]]:
[[2]][[1]]:
[1] 0.008892173 0.020021322 0.020639185 0.018127722 0.017892154

[[2]][[2]]:
[1] 0.008357905 0.021532654 0.020787510

 

Now I want to place the values in the exact columns numbers, of a matrix with 8 columns and 4 rows (consequently some values will be NA).

 

Can somebody give me some hints how to do this. Thanks.

 

Martijn

 


 

 

 
<Prev in Thread] Current Thread [Next in Thread>