I would like to thank you very much both.
Your replies helped me understand.
I will bookmark you replies for future reference :)
Best Regards
Alex
--- On Thu, 2/3/11, Kenn Konstabel wrote:
From: Kenn Konstabel
Subject: Re: [R] Odp: Loop to mapply. Error
To: "Alaios"
Cc: "
On Thu, Feb 3, 2011 at 1:16 PM, Alaios wrote:
> I am sorry that I did not provide all the required data (for me is not very
> straight-forward to understand what I have to provide and what not)
>
>
> findCell<-function(x,sr){ # It is just for me understand how mapply works
> sr[x[1],x[2]
Hi
Alaios napsal dne 03.02.2011 12:16:45:
> Hello Petr,
> I am sorry that I did not provide all the required data (for me is not
very
> straight-forward to understand what I have to provide and what not)
>
>
> findCell<-function(x,sr){ # It is just for me understand how mapply
works
>
Hello Petr,
I am sorry that I did not provide all the required data (for me is not very
straight-forward to understand what I have to provide and what not)
findCell<-function(x,sr){ # It is just for me understand how mapply works
sr[x[1],x[2]]
}
and I want to call mapply like that.
m
Hi
Well, no data so a wild guess. You want select values from matrix sr based
on values in borders[,1] and borders[,2].
If it is the case plain selection could be far better
> mat<-matrix(1:12, 4,4)
> mat
[,1] [,2] [,3] [,4]
[1,]1591
[2,]26 102
[3,]37
5 matches
Mail list logo