Re: [R] Two Dimensional Transformation

2010-07-16 Thread Nikhil Kaza
Unless I am missing something this should do it a<- cbind(runif(10),runif(10)) b <- cbind(a[,1]+a[,2], a[,1]/a[,2]) On Jul 16, 2010, at 7:00 AM, Ravi Ramaswamy wrote: Hi - I am trying to map a two dimensional area A to another two dimensional area B using a function. For instance A =

[R] Two Dimensional Transformation

2010-07-16 Thread Ravi Ramaswamy
Hi - I am trying to map a two dimensional area A to another two dimensional area B using a function. For instance A = {(x,y), 0https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained,