[R] Lists heading in an array of lists in R

TJUN KIAT TEO teotjunk at hotmail.com
Fri Jan 22 08:29:26 CET 2016


I am trying to populate an array of lists in R . Here is my code

TunePar<-matrix(list(Null),2,2)
  
TunePar[1,1]=list(G=2)

But when I type TunePar[1,1,], all I get is 2. The G has disappeared. why?

If I do this

Test=list(G=2)
> Test
$G
[1] 2



 		 	   		  
	[[alternative HTML version deleted]]



More information about the R-help mailing list