[R] Generating raster simulations

Uwe Ligges ligges at statistik.uni-dortmund.de
Sat Jan 7 17:18:45 CET 2006

Steven K Friedman wrote:

> Greetings, 
> I'm trying to find a function to generate a random landscape consisting of x 
> by y cells, allows a specification of number of classes and their 
> proportional abundance in the landscape. 
> Does R support such a function ? 

1. I do not know.

2. A look at the many packages on spatial statistics might reveal some 
already existing packages.

3. Question: Can one cell contain more than one object (e.g. objects of 
two different classes)? Ideas:
  - If "No": sample() and make a matrix
  - If "Yes": sample() a logical matrix in for each class and make an 
array, if there are not too many classes.

Uwe Ligges

> Thanks in advance 
> Steve 
> Steve Friedman, Assistant Professor
> Center for Global Change and Earth Observations
> Michigan State University
> East Lansing, Michigan 48824
> Phone - 517 - 648 - 6290
> ______________________________________________
> R-help at 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

More information about the R-help mailing list