Displaying 2 results from an estimated 2 matches for "witneyweb".
2011 Jan 27
3
how to divide each element of a matrix by a specific value per column
Hi,
I'd like to divide each element of a matrix by a specific value per column. These specific values are stored in a list. For example:
> x <- c(1,2,3,4,5)
> y <- matrix(c(1:30), nrow = 6)
Now I want to divide each element in y[,1] by x[1], y[,2] by x[2] etc. I have tried this
> my_function <- function(data, ind) data/ind
> apply(y, 2, my_function, x)
[,1] [,2]
2011 Jan 26
1
Compilation errors when installing gee
Hi,
I am trying to install gee on our server but I get the error below. I do not have root on this machine so no control on how R was installed itself. It looks like it cannot find blas libs, the only ones i can find on the machine are:
/usr/lib64/libblas.so.3 -> libblas.so.3.0.3
/usr/lib64/libblas.so.3.0 -> libblas.so.3.0.3
/usr/lib64/libblas.so.3.0.3
and :
$ R CMD config BLAS_LIBS