- 1. [S] Re: name identical elements (was: no subject) (score: 1)
- Author: "Jan Schelling" <schelling@ivuk.mavt.ethz.ch>
- Date: Wed, 15 Apr 1998 02:12:05 +0200
- A quick and easy way to identify identical elements of a vector is the function match(): Try z_c <- complex(real = round(rnorm(1000),1), imaginary = round(rnorm(1000),1)) names(z_c) <- paste("z", mat
- /archives/html/s-news/1998-04/msg00113.html (9,767 bytes)
- 2. Re: [S] Re: name identical elements (was: no subject) (score: 1)
- Author: "Jan Schelling" <schelling@ivuk.mavt.ethz.ch>
- Date: Wed, 15 Apr 1998 08:42:44 +0200
- Oops, in my earlier post I certainly intendet to write: n <- 100000 # not 1000000 z <- complex(real = round(rnorm(n),1), imaginary =round(rnorm(n),1)) # z not z_c !! names(z) <- paste("z", match(z ,z
- /archives/html/s-news/1998-04/msg00114.html (10,759 bytes)
This search system is powered by
Namazu