Skip to content

Efficient method: Equality of all elements of two vectors

2 messages · Shant Ch, Ista Zahn

#
Hi,
On Sun, Oct 14, 2012 at 11:23 AM, Shant Ch <sha1one at yahoo.com> wrote:
Sounds like
y2 <- rnorm (m, x2^2,1)
y2 <- ifelse(x2==x1, y1, y2)

Best,
Ista