Re: [R] Creating an array [0 to 101] of a list

From: Rainer M. Krug <RKrug_at_sun.ac.za>
Date: Fri 30 Sep 2005 - 21:20:55 EST

Thanks a lot Matthias,

Rainer

TEMPL Matthias wrote:

> Probably, you could do it like
> 
> A <- list()
> for( i in 1:101){
>   A[[i]] <- Kest( get( paste("pp",i,sep="") ) )
> }
> 
> Best,
> Matthias
> 
> 

>>Hi
>>
>>I looked, but I didn't find it:
>>
>>I need an array [0 to 101] where each element is a list (the
>>result of
>>Kest in spatstat).
>>I.e. I want to do:
>>
>>A[2] <- Kest(pp1)
>>A[3] <- Kest(pp2)
>>...
>>A[101] <- Kest(pp100)
>>
>>How can I create A ?
>>
>>Rainer
>>
>>--
>>Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
>>Biology (UCT)
>>
>>Department of Conservation Ecology
>>University of Stellenbosch
>>Matieland 7602
>>South Africa
>>
>>______________________________________________
>>R-help@stat.math.ethz.ch mailing list
>>https://stat.ethz.ch/mailman/listinfo/r-help
>>PLEASE do read
>>the posting guide! http://www.R-project.org/posting-guide.html
>>
>
>
-- 
NEW TELEPHONE NUMBER
Tel:		+27 - (0)72 808 2975 (w)

Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Department of Conservation Ecology
University of Stellenbosch
Matieland 7602
South Africa

Tel:		+27 - (0)72 808 2975 (w)
Fax:		+27 - (0)21 808 3304
Cell:		+27 - (0)83 9479 042

email:	RKrug@sun.ac.za
       	Rainer@krugs.de

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Sep 30 21:24:42 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:04:59 EST