Displaying 2 results from an estimated 2 matches for "initial_point".
2008 Oct 27
1
Problem with script
...# Let's generate a matrix full
of zeroes
random_matrix <- matrix(0, nrow=175, ncol=175)
# Size of range (area of
distribution)
range_size <- 100
# Let's choose initial point
initial_point_passed <- FALSE
initial_point <- sample(175, 2)
while (initial_point_passed == FALSE){
if (mexico_matrix[initial_point[1], initial_point[2]] == 0)
initial_point <- sample(175, 2) else {
random_matrix[initial_point[1], initial_point[2]] <- 1
initial_point_passed &l...
2008 Oct 27
1
Problem with script,
I?m sorry, in my last email I forgot to attach the data I?m using wich
is a matrix of 175x175 filled with 0?s and 1?s
0 is the sea
1 is the continental land
The script is area.r
Thank you very much.
Carlos L?pez
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
An embedded and