[R] error in R

2010-03-03 Thread frederik vanhaelst
Hi, I want put some values in the last column of a matrix b. But every time again there comes the same error on the screen... > b <- array(0, c(5,5)) > m<-matrix(runif(20,0,2*pi),5) # the sinus of this kind of values i want put in the last column of b, m is a 5*4 matrix > n<-5 > for(i in

[R] Random real numbers

2010-03-02 Thread frederik vanhaelst
Hi, How could i generate random real numbers between 0 en 2*pi? Thanks, Frederik [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://ww

[R] sort columns

2010-02-26 Thread frederik vanhaelst
Hello, i have a 50*100 matrix, with real numbers. How do i sort each column? Now i sort it with a for-loop but this take a lot of time... Thank you, Frederik [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://st